|
||||||||||
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(java.io.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. |
java.io.File |
file()
|
java.lang.String |
getDataLocationId()
|
RasterGeoReference |
getGeoReference()
|
int |
getHeight()
|
RasterDataInfo |
getRasterDataInfo()
|
java.util.Set<java.lang.String> |
getSupportedFormats()
|
int |
getWidth()
|
AbstractRaster |
load(java.io.File filename,
RasterIOOptions options)
Read the given raster file into an abstract raster. |
AbstractRaster |
load(java.io.InputStream stream,
RasterIOOptions options)
Read the given input stream into an abstract raster. |
BufferResult |
read(RasterRect rect,
java.nio.ByteBuffer result)
|
boolean |
shouldCreateCacheFile()
|
Method Detail |
---|
AbstractRaster load(java.io.File filename, RasterIOOptions options) throws java.io.IOException
filename
- options
-
java.io.IOException
- may be thrown when there is a problem with reading the raster.AbstractRaster load(java.io.InputStream stream, RasterIOOptions options) throws java.io.IOException
stream
- options
-
java.io.IOException
- may be thrown when there is a problem with reading the raster.boolean canLoad(java.io.File filename)
filename
-
java.util.Set<java.lang.String> getSupportedFormats()
Set
of (image) formats mime/types the implementation is able to read.boolean shouldCreateCacheFile()
java.io.File file()
int getWidth()
int getHeight()
RasterGeoReference getGeoReference()
BufferResult read(RasterRect rect, java.nio.ByteBuffer result) throws java.io.IOException
rect
- to read.result
- to store the result in
java.io.IOException
RasterDataInfo getRasterDataInfo()
boolean canReadTiles()
java.lang.String getDataLocationId()
void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |