|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.taglibs.mailer2.ByteArrayDataSource
Implements a javax.activation.DataSource for byte array content. Used for
attachments with unknown types (unlike text/plain, text/html or text/xml) that
are created with the mt:attach with explicit name and type
attributes and body content.
| Constructor Summary | |
ByteArrayDataSource(byte[] content,
String name,
String contentType)
Constructor. |
|
| Method Summary | |
String |
getContentType()
Returns the Content-Type of the DataSource. |
InputStream |
getInputStream()
Returns an InputStream to the byte array content. |
String |
getName()
Returns the name of the DataSource. |
OutputStream |
getOutputStream()
Returns an OutputStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteArrayDataSource(byte[] content,
String name,
String contentType)
content - Byte array with contentname - Name of the attachmentcontentType - Content-Type of the datasource| Method Detail |
public InputStream getInputStream()
getInputStream in interface DataSourcepublic OutputStream getOutputStream()
getOutputStream in interface DataSourcepublic String getContentType()
getContentType in interface DataSourcepublic String getName()
getName in interface DataSource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||