|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.compoze.util.StringDataSource
This class implements a data source for strings.
| Constructor Summary | |
StringDataSource(java.lang.String sData,
java.lang.String sAttachmentName)
Constructor. |
|
StringDataSource(java.lang.String sData,
java.lang.String sContentType,
java.lang.String sAttachmentName)
Constructor. |
|
StringDataSource(java.lang.String sData,
java.lang.String sContentType,
java.lang.String sCharacterEncoding,
java.lang.String sAttachmentName)
Constructor. |
|
| Method Summary | |
java.lang.String |
getContentType()
Get the content-type of the data. |
java.io.InputStream |
getInputStream()
Get an input stream to the data. |
java.lang.String |
getName()
Get the name of the attachment. |
java.io.OutputStream |
getOutputStream()
Get an output stream to the data (not supported). |
void |
setContentType(java.lang.String sContentType)
Set the content-type of the data. |
void |
setName(java.lang.String sName)
Set the name of the attachment. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringDataSource(java.lang.String sData,
java.lang.String sAttachmentName)
text/plain.sData - the stringsAttachmentName - the attachment name
public StringDataSource(java.lang.String sData,
java.lang.String sContentType,
java.lang.String sAttachmentName)
sData - the stringsContentType - the content-typesAttachmentName - the attachment name
public StringDataSource(java.lang.String sData,
java.lang.String sContentType,
java.lang.String sCharacterEncoding,
java.lang.String sAttachmentName)
sData - the stringsContentType - the content-typesCharacterEncoding - the character encodingsAttachmentName - the attachment name| Method Detail |
public java.lang.String getContentType()
getContentType in interface javax.activation.DataSourcepublic void setContentType(java.lang.String sContentType)
sContentType - the content-type of the datapublic java.lang.String getName()
getName in interface javax.activation.DataSourcepublic void setName(java.lang.String sName)
sName - the name of the attachment
public java.io.InputStream getInputStream()
throws java.io.UnsupportedEncodingException
getInputStream in interface javax.activation.DataSource
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface javax.activation.DataSourcejava.io.IOException - always thrown because operation not supported
|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||