org.apache.james.mailrepository
Class MimeMessageAvalonSource
java.lang.Object
|
+--org.apache.james.core.MimeMessageSource
|
+--org.apache.james.mailrepository.MimeMessageAvalonSource
- public class MimeMessageAvalonSource
- extends MimeMessageSource
Method Summary |
InputStream |
getInputStream()
Get an input stream to retrieve the data stored in the datasource |
String |
getSourceId()
Returns a unique String ID that represents the location from where
this source is loaded. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MimeMessageAvalonSource
public MimeMessageAvalonSource(StreamRepository sr,
String repositoryName,
String key)
getSourceId
public String getSourceId()
- Returns a unique String ID that represents the location from where
this source is loaded. This will be used to identify where the data
is, primarily to avoid situations where this data would get overwritten.
- Specified by:
getSourceId
in class MimeMessageSource
- Returns:
- the String ID
getInputStream
public InputStream getInputStream()
throws IOException
- Description copied from class:
MimeMessageSource
- Get an input stream to retrieve the data stored in the datasource
- Specified by:
getInputStream
in class MimeMessageSource
- Returns:
- a
InputStream
containing the data
- Throws:
IOException
- if an error occurs while generating the
InputStream
"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."