|
Sun Adapter for e-Mail API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stc.connector.emailadapter.appconn.EmailAttachment
public class EmailAttachment
This class implements the email attachment.
| Constructor Summary | |
|---|---|
EmailAttachment()
Creates new EmailAttachment. |
|
| Method Summary | |
|---|---|
byte[] |
getContent()
Gets the attachment content. |
java.lang.String |
getContentType()
Gets the attachment content type (MIME). |
java.lang.String |
getName()
Gets the attachment name (filename). |
void |
persist(com.stc.connector.persistence.bpel.DataOutput dout)
Persists (serialize) this message. |
protected void |
readFrom(java.io.InputStream is)
Reads the attachment file from the InputStream is
and stores its content into internal buffer provided by the
ByteArrayOutputStream bas. |
void |
restore(com.stc.connector.persistence.bpel.DataInput din)
Restore (deserialize) this message. |
protected java.lang.String |
retrieveContentType()
Get the content type based on the attributes set. |
void |
setContent(byte[] content)
Sets the attachment content. |
protected void |
setContent(java.io.ByteArrayOutputStream bos)
Set the content type as a ByteArrayOutputStream. |
void |
setContentType(java.lang.String contentType)
Sets the attachment content type (MIME). |
void |
setName(java.lang.String name)
Sets the attachment name (filename). |
java.lang.String |
toString()
Return the information of this EmailAttachment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EmailAttachment()
| Method Detail |
|---|
public void setContent(byte[] content)
content - The attachment content as a byte array.public byte[] getContent()
public void setContentType(java.lang.String contentType)
contentType - The attachment content type (MIME).public java.lang.String getContentType()
public void setName(java.lang.String name)
name - The attachment name (filename).public java.lang.String getName()
protected void setContent(java.io.ByteArrayOutputStream bos)
bos - The ByteArrayOutputStream attachment content.
protected void readFrom(java.io.InputStream is)
throws java.io.IOException
is
and stores its content into internal buffer provided by the
ByteArrayOutputStream bas.
is - The InputStream.
java.io.IOException - upon error.protected java.lang.String retrieveContentType()
public java.lang.String toString()
toString in class java.lang.Object
public void persist(com.stc.connector.persistence.bpel.DataOutput dout)
throws java.lang.Exception
persist in interface com.stc.connector.persistence.bpel.PersistableDatadout - The DataOutput to which the Java Bean
message is persisted.
java.lang.Exception - upon error.
public void restore(com.stc.connector.persistence.bpel.DataInput din)
throws java.lang.Exception
restore in interface com.stc.connector.persistence.bpel.PersistableDatadis - The DataInput from which the Java Bean
message is restored.
java.lang.Exception - upon error.
|
Sun Adapter for e-Mail API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||