Package i2p.susi.webmail
Class Attachment
- java.lang.Object
- 
- i2p.susi.webmail.Attachment
 
- 
 public class Attachment extends Object - Since:
- public since 0.9.33, was package private
- Author:
- user
 
- 
- 
Constructor SummaryConstructors Constructor Description Attachment(String name, String type, String encoding, File data)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteData()Delete the data filebooleanequals(Object o)StringgetContentType()InputStreamgetData()StringgetFileName()StringgetPath()longgetSize()The unencoded sizeStringgetTransferEncoding()inthashCode()
 
- 
- 
- 
Method Detail- 
getFileNamepublic String getFileName() - Returns:
- Returns the fileName.
 
 - 
getTransferEncodingpublic String getTransferEncoding() - Returns:
- non-null
 
 - 
getContentTypepublic String getContentType() 
 - 
getDatapublic InputStream getData() throws IOException - Returns:
- Returns the data.
- Throws:
- IOException
 
 - 
getPathpublic String getPath() - Returns:
- absolute path to the data file
- Since:
- 0.9.35
 
 - 
getSizepublic long getSize() The unencoded size- Since:
- 0.9.33
 
 - 
deleteDatapublic void deleteData() Delete the data file- Since:
- 0.9.33
 
 
- 
 
-