|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.james.core.MimeMessageSource | +--org.apache.james.core.MimeMessageInputStreamSource
Takes an input stream and creates a repeatable input stream source for a MimeMessageWrapper. It does this by completely reading the input stream and saving that to a temporary file that should delete on exit, or when this object is GC'd.
MimeMessageWrapper
Constructor Summary | |
MimeMessageInputStreamSource(java.lang.String key,
java.io.InputStream in)
|
Method Summary | |
void |
finalize()
|
java.io.InputStream |
getInputStream()
Return an input stream to the data |
long |
getMessageSize()
Return the size of the temp file |
java.lang.String |
getSourceId()
Returns the unique identifier of this input stream source |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MimeMessageInputStreamSource(java.lang.String key, java.io.InputStream in)
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
public long getMessageSize() throws java.io.IOException
getMessageSize
in class MimeMessageSource
java.io.IOException
public void finalize()
finalize
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |