|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RasterReader
This interface is for abstraction of the raster loading handling.
Method Summary | |
---|---|
boolean |
canLoad(File filename)
Check if the raster reader is able to read the given raster file. |
boolean |
canReadTiles()
should return true if the given reader can easily read tiles,without consuming much more memory than needed. |
void |
dispose()
Signals the reader that it should try to dispose all in memory data. |
File |
file()
|
String |
getDataLocationId()
|
RasterGeoReference |
getGeoReference()
|
int |
getHeight()
|
RasterDataInfo |
getRasterDataInfo()
|
Set<String> |
getSupportedFormats()
|
int |
getWidth()
|
AbstractRaster |
load(File filename,
RasterIOOptions options)
Read the given raster file into an abstract raster. |
AbstractRaster |
load(InputStream stream,
RasterIOOptions options)
Read the given input stream into an abstract raster. |
BufferResult |
read(RasterRect rect,
ByteBuffer result)
|
boolean |
shouldCreateCacheFile()
|
Method Detail |
---|
AbstractRaster load(File filename, RasterIOOptions options) throws IOException
filename
- options
-
IOException
- may be thrown when there is a problem with reading the raster.AbstractRaster load(InputStream stream, RasterIOOptions options) throws IOException
stream
- options
-
IOException
- may be thrown when there is a problem with reading the raster.boolean canLoad(File filename)
filename
-
Set<String> getSupportedFormats()
Set
of (image) formats mime/types the implementation is able to read.boolean shouldCreateCacheFile()
File file()
int getWidth()
int getHeight()
RasterGeoReference getGeoReference()
BufferResult read(RasterRect rect, ByteBuffer result) throws IOException
rect
- to read.result
- to store the result in
IOException
RasterDataInfo getRasterDataInfo()
boolean canReadTiles()
String getDataLocationId()
void dispose()
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |