Esri Geoportal Server
1.2.9

com.esri.gpt.control.georss.dcatcache
Class DcatCache

java.lang.Object
  extended by com.esri.gpt.control.georss.dcatcache.DcatCache

public class DcatCache
extends Object

DCAT cache.


Constructor Summary
DcatCache(File root)
          Creates instance of the cache.
 
Method Summary
 InputStream createInputCacheStream()
          Creates cache stream from the latest cache data.
 OutputStream createOutputCacheStream()
          Creates output stream to write into the cache.
static DcatCache getInstance()
          Gets instance of the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DcatCache

public DcatCache(File root)
Creates instance of the cache.

Parameters:
root - root folder of the cache
Method Detail

getInstance

public static DcatCache getInstance()
Gets instance of the cache.

Returns:
singleton instance of the cache

createInputCacheStream

public InputStream createInputCacheStream()
                                   throws FileNotFoundException
Creates cache stream from the latest cache data.

Returns:
input stream
Throws:
FileNotFoundException - if cache data file not found

createOutputCacheStream

public OutputStream createOutputCacheStream()
                                     throws FileNotFoundException
Creates output stream to write into the cache.

Returns:
output stream
Throws:
FileNotFoundException - if can not create stream

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.