public static interface IlvRasterMappedBuffer.JITDataLoader
IlvRasterTileLoader loads a tile whose buffer is empty (0 bytes).| Modifier and Type | Method and Description |
|---|---|
void |
loadData(IlvRasterMappedBuffer source,
IlvRasterProperties properties)
Method to load data when the tile loader needs it.
|
void |
unloadData(IlvRasterMappedBuffer rasterMappedBuffer,
IlvRasterProperties rasterProperties)
Method to unload a tile content.
|
void loadData(IlvRasterMappedBuffer source, IlvRasterProperties properties)
public void loadData(IlvRasterMappedBuffer source,IlvRasterProperties properties) {
String fileName = properties.getBaseName();
... read the bytes deom the file ...
source.setBytes(bytes);
}
source - data Buffer to fill with data read on the fly.properties - information attached to this buffer.void unloadData(IlvRasterMappedBuffer rasterMappedBuffer, IlvRasterProperties rasterProperties)
rasterMappedBuffer - data Buffer to clear when tile is unloaded.rasterProperties - information attached to this buffer.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.