|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.core.MimeMessageSource
org.apache.james.mailrepository.MimeMessageAvalonSource
public class MimeMessageAvalonSource
Constructor Summary | |
---|---|
MimeMessageAvalonSource(org.apache.avalon.cornerstone.services.store.StreamRepository sr,
java.lang.String repositoryName,
java.lang.String key)
Main constructor |
Method Summary | |
---|---|
java.io.InputStream |
getInputStream()
Return the InputStream |
long |
getMessageSize()
Return the size of all the data. |
java.lang.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 |
Constructor Detail |
---|
public MimeMessageAvalonSource(org.apache.avalon.cornerstone.services.store.StreamRepository sr, java.lang.String repositoryName, java.lang.String key)
sr
- The stream repository used by this data source.repositoryName
- The name of the repositorykey
- The key for the particular stream in the stream repository to be used by this data source.Method Detail |
---|
public java.lang.String getSourceId()
getSourceId
in class MimeMessageSource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class MimeMessageSource
java.io.IOException
- if an error occurs while generating the
InputStreampublic long getMessageSize() throws java.io.IOException
MimeMessageSource
getMessageSize
in class MimeMessageSource
java.io.IOException
- if an error is encountered while computing the message sizeMimeMessageSource.getMessageSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |