public class UnsavedFileAttachment extends Attachment
Attachment.Encoding
encoding, name, type
Constructor and Description |
---|
UnsavedFileAttachment(java.io.File file,
java.lang.String type) |
UnsavedFileAttachment(java.io.File file,
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 UnsavedFileAttachment(java.io.File file, java.lang.String type)
public UnsavedFileAttachment(java.io.File file, 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