|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(java.io.File file,
RasterIOOptions options)
Create a JAIRasterReader for given file |
|
JAIRasterDataReader(java.io.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()
|
java.io.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(java.io.File file,
RasterIOOptions options)
file - file to readoptions - holding information
public JAIRasterDataReader(java.io.InputStream stream,
RasterIOOptions options)
stream - stream to readoptions - holding information| Method Detail |
|---|
public ByteBufferRasterData read()
read in interface RasterDataReaderpublic int getColumns()
public int getRows()
public void close()
close in interface RasterDataReaderpublic java.io.File file()
public void dispose()
public RasterDataInfo getRasterDataInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||