public interface BufferDataSource
Modifier and Type | Method and Description |
---|---|
void |
changeFileName(String oldName,
String newName)
Change the name of a file
|
BufferDataSource |
clone()
Clone the datasource to be assigned to each band
|
void |
close()
Close the data source
|
void |
delete(String file)
Elimina la fuente de datos de disco
|
int |
getBandCount()
Get de number of bands
|
int |
getDataType()
Get the data type
|
int |
getHeight()
Get the height of the data source
|
String[] |
getPath()
Get the path to image file
|
int |
getSelectedBand()
Get the band selected to read for loadSelectedBand method
|
int |
getWidth()
Get the width of the data source
|
void |
loadPage(Buffer rb,
PxTile stripe)
Load a page with data.
|
void |
loadPage(Buffer rb,
PxTile stripe,
int iBand)
Load a one banded page with data.
|
void |
loadPage(Buffer buf,
String file)
Load a page of cache from the hard disk
|
void |
loadSelectedBand(Buffer rb,
PxTile stripe)
Load a page with data.
|
void |
saveBand(Band buf,
String file)
Save a band of cache to the hard disk
|
void |
savePage(Buffer buf,
String file)
Save a page of cache to the hard disk
|
void |
setPath(String path)
Set the path to image file
|
void |
setPath(String[] path)
Set the path to image file
|
void |
setSelectedBand(int path)
Set the band selected to read for loadSelectedBand method
|
String[] getPath()
void setPath(String[] path)
path
- path to the filevoid setPath(String path)
path
- path to the fileint getSelectedBand()
void setSelectedBand(int path)
band
- band to the fileint getWidth()
int getHeight()
int getBandCount()
int getDataType()
void loadPage(Buffer rb, PxTile stripe) throws IOException, ProcessInterruptedException, OperationNotSupportedException
rb
- Pagestripe
- Object with the information about data read. This contains positional information.IOException
InterruptedException
OperationNotSupportedException
ProcessInterruptedException
void loadPage(Buffer rb, PxTile stripe, int iBand) throws IOException, ProcessInterruptedException, OperationNotSupportedException
rb
- Pagestripe
- Object with the information about data read. This contains positional information.iBand
- Band to loadIOException
InterruptedException
OperationNotSupportedException
ProcessInterruptedException
void loadSelectedBand(Buffer rb, PxTile stripe) throws IOException, OperationNotSupportedException, ProcessInterruptedException
rb
- Pagestripe
- Object with the information about data read. This contains positional information.IOException
OperationNotSupportedException
ProcessInterruptedException
void loadPage(Buffer buf, String file) throws InterruptedException
RasterMemoryBuffer
- Data buffer to load in memoryString
- File nameInterruptedException
void savePage(Buffer buf, String file) throws IOException
RasterMemoryBuffer
- Data buffer to load in memoryString
- File nameIOException
void saveBand(Band buf, String file) throws IOException
RasterMemoryBuffer
- Data buffer to load in memoryString
- File nameIOException
void delete(String file) throws IOException
IOException
void close() throws IOException
IOException
void changeFileName(String oldName, String newName)
oldName
- newName
- BufferDataSource clone()