public class UnsavedStreamAttachment extends Attachment
Attachment.Encoding
encoding, name, type
Constructor and Description |
---|
UnsavedStreamAttachment(java.io.InputStream stream,
java.lang.String name,
java.lang.String type) |
UnsavedStreamAttachment(java.io.InputStream stream,
java.lang.String name,
java.lang.String type,
Attachment.Encoding encoding) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream()
Gets contents of attachments as a stream.
|
compareTo, getEncodingFromString, toString
public UnsavedStreamAttachment(java.io.InputStream stream, java.lang.String name, java.lang.String type)
public UnsavedStreamAttachment(java.io.InputStream stream, java.lang.String name, java.lang.String type, Attachment.Encoding encoding)
public java.io.InputStream getInputStream() throws java.io.IOException
Attachment
getInputStream
in class Attachment
java.io.IOException
- there was an error obtaining the stream, eg from disk or network