|
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.InputStreamDataSource
This class implements a data source for strings.
Constructor Summary | |
InputStreamDataSource(java.io.InputStream is,
java.lang.String sContentType,
java.lang.String sName)
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. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InputStreamDataSource(java.io.InputStream is, java.lang.String sContentType, java.lang.String sName)
is
- the input stream to the datasContentType
- sName
- the display nameMethod Detail |
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public void setContentType(java.lang.String sContentType)
sContentType
- the content-type of the datapublic java.lang.String getName()
getName
in interface javax.activation.DataSource
public void setName(java.lang.String sName)
sName
- the namepublic java.io.InputStream getInputStream()
getInputStream
in interface javax.activation.DataSource
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.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 |