public class MimeMessageStreamRepositorySource extends MimeMessageSource
Constructor and Description |
---|
MimeMessageStreamRepositorySource(StreamRepository sr,
String repositoryName,
String key)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Return the InputStream
|
long |
getMessageSize()
Return the size of all the data.
|
String |
getSourceId()
Returns a unique String ID that represents the location from where this
source is loaded.
|
public MimeMessageStreamRepositorySource(StreamRepository sr, String repositoryName, 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.public String getSourceId()
getSourceId
in class MimeMessageSource
public InputStream getInputStream() throws IOException
getInputStream
in class MimeMessageSource
IOException
- if an error occurs while generating the InputStreampublic long getMessageSize() throws IOException
MimeMessageSource
getMessageSize
in class MimeMessageSource
IOException
- if an error is encountered while computing the message sizeMimeMessageSource.getMessageSize()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.