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 Summary
Constructors Constructor Description Attachment(String name, String type, String encoding, File data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteData()
Delete the data fileboolean
equals(Object o)
String
getContentType()
InputStream
getData()
String
getFileName()
String
getPath()
long
getSize()
The unencoded sizeString
getTransferEncoding()
int
hashCode()
-
-
-
Method Detail
-
getFileName
public String getFileName()
- Returns:
- Returns the fileName.
-
getTransferEncoding
public String getTransferEncoding()
- Returns:
- non-null
-
getContentType
public String getContentType()
-
getData
public InputStream getData() throws IOException
- Returns:
- Returns the data.
- Throws:
IOException
-
getPath
public String getPath()
- Returns:
- absolute path to the data file
- Since:
- 0.9.35
-
getSize
public long getSize()
The unencoded size- Since:
- 0.9.33
-
deleteData
public void deleteData()
Delete the data file- Since:
- 0.9.33
-
-