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

java.lang.Object
  extended by org.apache.avalon.cornerstone.blocks.masterstore.AbstractFileRepository
      extended by org.apache.avalon.cornerstone.blocks.masterstore.AbstractFilePersistentStreamRepository
          extended by org.apache.avalon.cornerstone.blocks.masterstore.CDIFilePersistentStreamRepository
All Implemented Interfaces:
org.apache.avalon.cornerstone.services.store.Repository, org.apache.avalon.cornerstone.services.store.StreamRepository

public class CDIFilePersistentStreamRepository
extends AbstractFilePersistentStreamRepository
implements org.apache.avalon.cornerstone.services.store.StreamRepository

Implementation of a StreamRepository to a File. TODO: -retieve(String key) should return a FilterInputStream to allow mark and reset methods. (working not like BufferedInputStream!!!)

Author:
Federico Barbieri

Field Summary
 
Fields inherited from class org.apache.avalon.cornerstone.blocks.masterstore.AbstractFilePersistentStreamRepository
m_inputs, 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
CDIFilePersistentStreamRepository(FileRepositoryMonitor monitor, ObjectRespositoryConfig config)
           
 
Method Summary
protected  void initializeChild(AbstractFileRepository child)
           
 
Methods inherited from class org.apache.avalon.cornerstone.blocks.masterstore.AbstractFilePersistentStreamRepository
get, getExtensionDecorator, put, remove
 
Methods inherited from class org.apache.avalon.cornerstone.blocks.masterstore.AbstractFileRepository
containsKey, createChildRepository, decode, encode, getChildRepository, getFile, getInputStream, getOutputStream, list, setDestination
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.avalon.cornerstone.services.store.StreamRepository
get, list, put, remove
 
Methods inherited from interface org.apache.avalon.cornerstone.services.store.Repository
getChildRepository
 

Constructor Detail

CDIFilePersistentStreamRepository

public CDIFilePersistentStreamRepository(FileRepositoryMonitor monitor,
                                         ObjectRespositoryConfig config)
                                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

initializeChild

protected void initializeChild(AbstractFileRepository child)
                        throws java.lang.Exception
Specified by:
initializeChild in class AbstractFileRepository
Throws:
java.lang.Exception