org.apache.avalon.cornerstone.blocks.masterstore
Class AbstractFilePersistentStreamRepository

java.lang.Object
  extended byorg.apache.avalon.cornerstone.blocks.masterstore.AbstractFileRepository
      extended byorg.apache.avalon.cornerstone.blocks.masterstore.AbstractFilePersistentStreamRepository
All Implemented Interfaces:
Repository
Direct Known Subclasses:
CDIFilePersistentStreamRepository, File_Persistent_Stream_Repository

public abstract class AbstractFilePersistentStreamRepository
extends AbstractFileRepository

Version:
$Revision: 1.8 $
Author:
Paul Hammant

Field Summary
protected  java.util.HashMap m_inputs
           
protected  java.util.HashMap m_outputs
           
 
Fields inherited from class org.apache.avalon.cornerstone.blocks.masterstore.AbstractFileRepository
BYTE_MASK, DEBUG, HANDLED_URL, HEX_DIGITS, m_baseDirectory, m_destination, m_extension, m_filter, m_name, m_path, monitor
 
Constructor Summary
AbstractFilePersistentStreamRepository()
           
 
Method Summary
 java.io.InputStream get(java.lang.String key)
          Get the object associated to the given unique key.
protected  java.lang.String getExtensionDecorator()
           
 java.io.OutputStream put(java.lang.String key)
          Store the given object and associates it to the given key
 void remove(java.lang.String key)
          Remove the object associated to the given key.
 
Methods inherited from class org.apache.avalon.cornerstone.blocks.masterstore.AbstractFileRepository
containsKey, createChildRepository, decode, encode, getChildRepository, getFile, getInputStream, getOutputStream, initializeChild, list, setDestination
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_inputs

protected final java.util.HashMap m_inputs

m_outputs

protected final java.util.HashMap m_outputs
Constructor Detail

AbstractFilePersistentStreamRepository

public AbstractFilePersistentStreamRepository()
Method Detail

get

public java.io.InputStream get(java.lang.String key)
Get the object associated to the given unique key.


put

public java.io.OutputStream put(java.lang.String key)
Store the given object and associates it to the given key


remove

public void remove(java.lang.String key)
Description copied from class: AbstractFileRepository
Remove the object associated to the given key.

Overrides:
remove in class AbstractFileRepository

getExtensionDecorator

protected java.lang.String getExtensionDecorator()
Specified by:
getExtensionDecorator in class AbstractFileRepository


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.