| 
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--portlets.compoze.groupware.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 data
public ByteArrayDataSource(byte[] data,
                           java.lang.String sContentType)
data - the datasContentType - the content-type of the data
public ByteArrayDataSource(java.lang.String sData,
                           java.lang.String sContentType)
data - the datasContentType - the content-type of the data| Method Detail | 
public java.io.InputStream getInputStream()
                                   throws java.io.IOException
getInputStream in interface javax.activation.DataSourcejava.io.IOException - if no data is available
public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
getOutputStream in interface javax.activation.DataSourcejava.io.IOException - always thrown since this is not supportedpublic java.lang.String getContentType()
getContentType in interface javax.activation.DataSourcepublic java.lang.String getName()
getName in interface javax.activation.DataSource
  | 
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||