public class Attachment extends Object
Constructor and Description |
---|
Attachment(File file) |
Attachment(String name,
InputStream stream) |
Attachment(String name,
String type,
InputStream stream) |
public Attachment(File file) throws FileNotFoundException
FileNotFoundException
public Attachment(String name, InputStream stream)
name
- name of the attachement (also used to determine the mime type of the attachement)stream
- content of the attachmentpublic Attachment(String name, String type, InputStream stream)
public InputStream getStream()
public String getName()
public String getType()
Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408