|
Compoze Software, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.util.ByteArrayDataSource
This class implements a typed data source from a byte array.
Constructor Summary | |
ByteArrayDataSource(byte[] data,
java.lang.String sContentType)
Constructor. |
|
ByteArrayDataSource(java.io.InputStream is,
java.lang.String sContentType)
Constructor. |
|
ByteArrayDataSource(java.lang.String sData,
java.lang.String sContentType)
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 a name for the data source. |
java.io.OutputStream |
getOutputStream()
Get an output stream to the data (not supported). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ByteArrayDataSource(java.io.InputStream is, java.lang.String sContentType)
is
- the input stream to create fromsContentType
- the content-type of the datapublic ByteArrayDataSource(byte[] data, java.lang.String sContentType)
data
- the datasContentType
- the content-type of the datapublic ByteArrayDataSource(java.lang.String sData, java.lang.String sContentType)
sContentType
- the content-type of the dataMethod Detail |
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
java.io.IOException
- if no data is availablepublic java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException
- always thrown since this is not supportedpublic java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.lang.String getName()
getName
in interface javax.activation.DataSource
|
Compoze Software, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |