fr.paris.lutece.util.mail
Class FileAttachment

java.lang.Object
  extended by fr.paris.lutece.util.mail.FileAttachment
All Implemented Interfaces:
Serializable

public class FileAttachment
extends Object
implements Serializable

File Attachement Object

See Also:
Serialized Form

Constructor Summary
FileAttachment(String fileName, byte[] data, String type)
          Creates a new FileAttachement object.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileAttachment

public FileAttachment(String fileName,
                      byte[] data,
                      String type)
Creates a new FileAttachement object.

Parameters:
fileName - the file name
data - The data
type - The file Content-type
Method Detail

getData

public byte[] getData()
Returns:
the content of the fileAttachement object

setData

public void setData(byte[] data)
set the content of the fileAttachement object

Parameters:
data - the content of the fileAttachement object

getFileName

public String getFileName()
Returns:
the file name

setFileName

public void setFileName(String fileName)
set the file name

Parameters:
fileName - the file name

getType

public String getType()
return the file content-type

Returns:
Content-type

setType

public void setType(String type)
set the file content-type

Parameters:
type - the file content-type


Copyright © 2014 Mairie de Paris. All Rights Reserved.