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

java.lang.Object
  extended by org.deegree.coverage.raster.data.container.RasterDataContainerFactory

public class RasterDataContainerFactory
extends Object

This class creates a RasterDataContainer. A RasterDataContainer wraps a RasterDataReader and controls the loading/storing of the raster data.

Version:
$Revision: 31644 $
Author:
Oliver Tonnhofer, last edited by: $Author: mschneider $

Nested Class Summary
static class RasterDataContainerFactory.LoadingPolicy
          Defines how raster should be loaded/stored.
 
Constructor Summary
RasterDataContainerFactory()
           
 
Method Summary
static RasterDataContainerFactory.LoadingPolicy getDefaultLoadingPolicy()
           
static void setDefaultLoadingPolicy(RasterDataContainerFactory.LoadingPolicy policy)
          Sets the default loading policy for all new raster container.
static RasterDataContainer withDefaultLoadingPolicy(RasterDataReader reader)
          Creates a RasterDataContainer with the default loading policy.
static RasterDataContainer withLoadingPolicy(RasterDataReader reader, RasterDataContainerFactory.LoadingPolicy policy)
          Create a RasterDataContainer for given LoadingPolicy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RasterDataContainerFactory

public RasterDataContainerFactory()
Method Detail

withLoadingPolicy

public static RasterDataContainer withLoadingPolicy(RasterDataReader reader,
                                                    RasterDataContainerFactory.LoadingPolicy policy)
Create a RasterDataContainer for given LoadingPolicy. The loading policy controlls if a raster should be loaded immediately, on demand or cached.

Parameters:
reader -
policy -
Returns:
a RasterDataContainer that wraps the given RasterDataReader

withDefaultLoadingPolicy

public static RasterDataContainer withDefaultLoadingPolicy(RasterDataReader reader)
Creates a RasterDataContainer with the default loading policy.

Parameters:
reader -
Returns:
a RasterDataContainer that wraps the given RasterDataReader

setDefaultLoadingPolicy

public static void setDefaultLoadingPolicy(RasterDataContainerFactory.LoadingPolicy policy)
Sets the default loading policy for all new raster container.

Parameters:
policy - if null it will be ignored.

getDefaultLoadingPolicy

public static RasterDataContainerFactory.LoadingPolicy getDefaultLoadingPolicy()
Returns:
the default loading policy


Copyright © 2011. All Rights Reserved.