org.apache.james.mailrepository.filepair
Class File_Persistent_Stream_Repository
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.james.mailrepository.filepair.AbstractFileRepository
|
+--org.apache.james.mailrepository.filepair.File_Persistent_Stream_Repository
- All Implemented Interfaces:
- Component, Configurable, Contextualizable, Initializable, LogEnabled, Repository, Serviceable, StreamRepository
- public class File_Persistent_Stream_Repository
- extends AbstractFileRepository
- implements 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
Fields inherited from class org.apache.james.mailrepository.filepair.AbstractFileRepository |
BYTE_MASK, DEBUG, HANDLED_URL, HEX_DIGITS, m_baseDirectory, m_context, m_destination, m_extension, m_filter, m_name, m_path, m_serviceManager |
Methods inherited from class org.apache.james.mailrepository.filepair.AbstractFileRepository |
configure, containsKey, contextualize, createChildRepository, decode, encode, getChildRepository, getFile, getInputStream, getOutputStream, initialize, list, service, setDestination |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_inputs
protected final HashMap m_inputs
m_outputs
protected final HashMap m_outputs
File_Persistent_Stream_Repository
public File_Persistent_Stream_Repository()
getExtensionDecorator
protected String getExtensionDecorator()
- Specified by:
getExtensionDecorator
in class AbstractFileRepository
get
public InputStream get(String key)
- Get the object associated to the given unique key.
- Specified by:
get
in interface StreamRepository
put
public OutputStream put(String key)
- Store the given object and associates it to the given key
- Specified by:
put
in interface StreamRepository
remove
public void remove(String key)
- Description copied from class:
AbstractFileRepository
- Remove the object associated to the given key.
- Specified by:
remove
in interface StreamRepository
- Overrides:
remove
in class AbstractFileRepository
"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."