org.deegree.coverage.raster.data.container
Class MemoryRasterDataContainer

java.lang.Object
  extended by org.deegree.coverage.raster.data.container.MemoryRasterDataContainer
All Implemented Interfaces:
RasterDataContainer, RasterDataContainerProvider

public class MemoryRasterDataContainer
extends Object
implements RasterDataContainer, RasterDataContainerProvider

This class implements a RasterDataContainer that keeps RasterData in memory.

Version:
$Revision: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
Author:
Oliver Tonnhofer, last edited by: $Author: mschneider $

Constructor Summary
MemoryRasterDataContainer()
          Creates an empty RasterDataContainer that stores the raster data in memory.
MemoryRasterDataContainer(RasterData raster)
          Wraps RasterData in a RasterDataContainer.
MemoryRasterDataContainer(RasterDataReader reader)
          Reads RasterData from RasterReader and wraps it in a RasterDataContainer.
 
Method Summary
 int getColumns()
           
 RasterData getRasterData()
          Returns the RasterData
 RasterDataContainer getRasterDataContainer(RasterDataContainerFactory.LoadingPolicy type)
          Returns a new RasterDataContainer for given type or null, if the implementation doesn't provide this type.
 RasterData getReadOnlyRasterData()
          Returns the RasterData as a read-only copy.
 int getRows()
           
 void setRasterDataReader(RasterDataReader reader)
          Sets the source of the raster data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryRasterDataContainer

public MemoryRasterDataContainer()
Creates an empty RasterDataContainer that stores the raster data in memory.


MemoryRasterDataContainer

public MemoryRasterDataContainer(RasterDataReader reader)
Reads RasterData from RasterReader and wraps it in a RasterDataContainer. RasterData stays in memory.

Parameters:
reader - RasterReader for RasterData

MemoryRasterDataContainer

public MemoryRasterDataContainer(RasterData raster)
Wraps RasterData in a RasterDataContainer. RasterData stays in memory.

Parameters:
raster - RasterData to wrap
Method Detail

getColumns

public int getColumns()

getRows

public int getRows()

getRasterData

public RasterData getRasterData()
Description copied from interface: RasterDataContainer
Returns the RasterData

Specified by:
getRasterData in interface RasterDataContainer
Returns:
RasterData

getReadOnlyRasterData

public RasterData getReadOnlyRasterData()
Description copied from interface: RasterDataContainer
Returns the RasterData as a read-only copy. Only a read-only RasterData supports thread-safe read operations.

Specified by:
getReadOnlyRasterData in interface RasterDataContainer
Returns:
RasterData

setRasterDataReader

public void setRasterDataReader(RasterDataReader reader)
Description copied from interface: RasterDataContainer
Sets the source of the raster data.

Specified by:
setRasterDataReader in interface RasterDataContainer
Parameters:
reader - the raster data reader for this container

getRasterDataContainer

public RasterDataContainer getRasterDataContainer(RasterDataContainerFactory.LoadingPolicy type)
Description copied from interface: RasterDataContainerProvider
Returns a new RasterDataContainer for given type or null, if the implementation doesn't provide this type.

Specified by:
getRasterDataContainer in interface RasterDataContainerProvider
Returns:
a RasterDataContainer for given type or null


Copyright © 2011. All Rights Reserved.