public class FileAttachment extends Object implements Serializable
Constructor and Description |
---|
FileAttachment(String fileName,
byte[] data,
String type)
Creates a new FileAttachement object.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getData() |
String |
getFileName() |
String |
getType()
return the file content-type
|
void |
setData(byte[] data)
set the content of the fileAttachement object
|
void |
setFileName(String fileName)
set the file name
|
void |
setType(String type)
set the file content-type
|
public byte[] getData()
public void setData(byte[] data)
data
- the content of the fileAttachement objectpublic String getFileName()
public void setFileName(String fileName)
fileName
- the file namepublic String getType()
public void setType(String type)
type
- the file content-typeCopyright © 2020 City of Paris. All rights reserved.