Package org.apache.cxf.attachment
Class ByteDataSource
- java.lang.Object
- 
- org.apache.cxf.attachment.ByteDataSource
 
- 
- All Implemented Interfaces:
- javax.activation.DataSource
 
 public class ByteDataSource extends Object implements javax.activation.DataSource 
- 
- 
Constructor SummaryConstructors Constructor Description ByteDataSource(byte[] dataParam)ByteDataSource(byte[] dataParam, int offsetParam, int lengthParam)ByteDataSource(byte[] dataParam, String ct)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()byte[]getData()InputStreamgetInputStream()StringgetName()OutputStreamgetOutputStream()voidsetContentType(String contentTypeParam)voidsetData(byte[] dataParam)voidsetName(String nameParam)
 
- 
- 
- 
Constructor Detail- 
ByteDataSourcepublic ByteDataSource(byte[] dataParam) 
 - 
ByteDataSourcepublic ByteDataSource(byte[] dataParam, String ct)
 - 
ByteDataSourcepublic ByteDataSource(byte[] dataParam, int offsetParam, int lengthParam)
 
- 
 - 
Method Detail- 
getDatapublic byte[] getData() 
 - 
setDatapublic void setData(byte[] dataParam) 
 - 
setContentTypepublic void setContentType(String contentTypeParam) 
 - 
setNamepublic void setName(String nameParam) 
 - 
getContentTypepublic String getContentType() - Specified by:
- getContentTypein interface- javax.activation.DataSource
 
 - 
getInputStreampublic InputStream getInputStream() throws IOException - Specified by:
- getInputStreamin interface- javax.activation.DataSource
- Throws:
- IOException
 
 - 
getNamepublic String getName() - Specified by:
- getNamein interface- javax.activation.DataSource
 
 - 
getOutputStreampublic OutputStream getOutputStream() throws IOException - Specified by:
- getOutputStreamin interface- javax.activation.DataSource
- Throws:
- IOException
 
 
- 
 
-