public class Attachment extends Object implements Serializable
Represents attachment file contained by email message, archive, PDF document or Outlook data file.
Constructor and Description |
---|
Attachment(String id,
String fileName,
long size)
Initializes new instance of
Attachment class. |
Modifier and Type | Method and Description |
---|---|
String |
getFileName() |
FileType |
getFileType() |
String |
getId() |
long |
getSize() |
String |
toString()
Returns a string that represents the current object.
|
public Attachment(String id, String fileName, long size)
Initializes new instance of Attachment
class.
id
- Unique (in context of single file) identifier of the attachment.fileName
- Attachment file name.size
- Attachment file size in bytes.IllegalArgumentException
- Thrown when id
is null or empty.IllegalArgumentException
- Thrown when fileName
is null or empty.Copyright © 2020. All rights reserved.