jec.dto
Class AttachmentDTO

java.lang.Object
  extended by jec.dto.AttachmentInfoDTO
      extended by jec.dto.AttachmentDTO
All Implemented Interfaces:
java.io.Serializable

public class AttachmentDTO
extends AttachmentInfoDTO
implements java.io.Serializable

Title:

Description: DataStructure for Attachment, holds information of the attachment name and path.

Copyright: Copyright (c) 2006

Company: NetComps

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jec.dto.AttachmentInfoDTO
contentType, id, name, path
 
Constructor Summary
AttachmentDTO()
           
 
Method Summary
 byte[] getByteData()
           
 java.lang.String getCid()
           
 java.io.InputStream getInputStreamContent()
           
 void setByteData(byte[] data)
           
 void setCid(java.lang.String cid)
          Set the content ID, used for inline attachments (see related example).
 void setInputStreamContent(java.io.InputStream is)
           
 
Methods inherited from class jec.dto.AttachmentInfoDTO
getContentType, getId, getName, getPath, setContentType, setId, setName, setPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentDTO

public AttachmentDTO()
Method Detail

getCid

public java.lang.String getCid()

setCid

public void setCid(java.lang.String cid)
Set the content ID, used for inline attachments (see related example).

Parameters:
cid - can be only ascii characters, with no special ones (A-Z,a-z,_)

setInputStreamContent

public void setInputStreamContent(java.io.InputStream is)

getInputStreamContent

public java.io.InputStream getInputStreamContent()

getByteData

public byte[] getByteData()

setByteData

public void setByteData(byte[] data)