org.apache.james.mailrepository
Class MimeMessageAvalonSource

java.lang.Object
  |
  +--org.apache.james.core.MimeMessageSource
        |
        +--org.apache.james.mailrepository.MimeMessageAvalonSource

public class MimeMessageAvalonSource
extends MimeMessageSource


Constructor Summary
MimeMessageAvalonSource(StreamRepository sr, String repositoryName, String key)
           
 
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 org.apache.james.core.MimeMessageSource
getMessageSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeMessageAvalonSource

public MimeMessageAvalonSource(StreamRepository sr,
                               String repositoryName,
                               String key)
Method Detail

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."