|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.coverage.raster.io.jai.JAIRasterDataReader
public class JAIRasterDataReader
This class implements a simple reader for raster files. It is based on Java Advanced Imaging and it returns RasterData objects. rb: This class needs heavy refactoring, maybe enable tiling for supporting files, than streams would not work any more, but using the renderOp would.
Constructor Summary | |
---|---|
JAIRasterDataReader(File file,
RasterIOOptions options)
Create a JAIRasterReader for given file |
|
JAIRasterDataReader(InputStream stream,
RasterIOOptions options)
Create a JAIRasterReader for given stream |
Method Summary | |
---|---|
void |
close()
Removes the internal references to the loaded raster to allow garbage collection of the raster. |
void |
dispose()
|
File |
file()
|
int |
getColumns()
Retruns the width of the raster associated with the reader |
RasterDataInfo |
getRasterDataInfo()
|
int |
getRows()
Retruns the height of the raster associated with the reader |
ByteBufferRasterData |
read()
Reads data and returns a new RasterData object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JAIRasterDataReader(File file, RasterIOOptions options)
file
- file to readoptions
- holding informationpublic JAIRasterDataReader(InputStream stream, RasterIOOptions options)
stream
- stream to readoptions
- holding informationMethod Detail |
---|
public ByteBufferRasterData read()
read
in interface RasterDataReader
public int getColumns()
public int getRows()
public void close()
close
in interface RasterDataReader
public File file()
public void dispose()
public RasterDataInfo getRasterDataInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |