public interface BufferDataSource
Modifier and Type | Method and Description |
---|---|
void |
changeFileName(java.lang.String oldName,
java.lang.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(java.lang.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
|
java.lang.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,
java.lang.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,
java.lang.String file)
Save a band of cache to the hard disk
|
void |
savePage(Buffer buf,
java.lang.String file)
Save a page of cache to the hard disk
|
void |
setPath(java.lang.String path)
Set the path to image file
|
void |
setPath(java.lang.String[] path)
Set the path to image file
|
void |
setSelectedBand(int path)
Set the band selected to read for loadSelectedBand method
|
java.lang.String[] getPath()
void setPath(java.lang.String[] path)
path
- path to the filevoid setPath(java.lang.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 java.io.IOException, ProcessInterruptedException, OperationNotSupportedException
rb
- Pagestripe
- Object with the information about data read. This contains positional information.java.io.IOException
java.lang.InterruptedException
OperationNotSupportedException
ProcessInterruptedException
void loadPage(Buffer rb, PxTile stripe, int iBand) throws java.io.IOException, ProcessInterruptedException, OperationNotSupportedException
rb
- Pagestripe
- Object with the information about data read. This contains positional information.iBand
- Band to loadjava.io.IOException
java.lang.InterruptedException
OperationNotSupportedException
ProcessInterruptedException
void loadSelectedBand(Buffer rb, PxTile stripe) throws java.io.IOException, OperationNotSupportedException, ProcessInterruptedException
rb
- Pagestripe
- Object with the information about data read. This contains positional information.java.io.IOException
OperationNotSupportedException
ProcessInterruptedException
void loadPage(Buffer buf, java.lang.String file) throws java.lang.InterruptedException
RasterMemoryBuffer
- Data buffer to load in memoryString
- File namejava.lang.InterruptedException
void savePage(Buffer buf, java.lang.String file) throws java.io.IOException
RasterMemoryBuffer
- Data buffer to load in memoryString
- File namejava.io.IOException
void saveBand(Band buf, java.lang.String file) throws java.io.IOException
RasterMemoryBuffer
- Data buffer to load in memoryString
- File namejava.io.IOException
void delete(java.lang.String file) throws java.io.IOException
java.io.IOException
void close() throws java.io.IOException
java.io.IOException
void changeFileName(java.lang.String oldName, java.lang.String newName)
oldName
- newName
- BufferDataSource clone()