Package org.apache.cxf.attachment
Class ByteDataSource
java.lang.Object
org.apache.cxf.attachment.ByteDataSource
- All Implemented Interfaces:
- jakarta.activation.DataSource
- 
Constructor SummaryConstructorsConstructorDescriptionByteDataSource(byte[] dataParam) ByteDataSource(byte[] dataParam, int offsetParam, int lengthParam) ByteDataSource(byte[] dataParam, String ct) 
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]getData()getName()voidsetContentType(String contentTypeParam) voidsetData(byte[] dataParam) void
- 
Constructor Details- 
ByteDataSourcepublic ByteDataSource(byte[] dataParam) 
- 
ByteDataSource
- 
ByteDataSourcepublic ByteDataSource(byte[] dataParam, int offsetParam, int lengthParam) 
 
- 
- 
Method Details- 
getDatapublic byte[] getData()
- 
setDatapublic void setData(byte[] dataParam) 
- 
setContentType
- 
setName
- 
getContentType- Specified by:
- getContentTypein interface- jakarta.activation.DataSource
 
- 
getInputStream- Specified by:
- getInputStreamin interface- jakarta.activation.DataSource
- Throws:
- IOException
 
- 
getName- Specified by:
- getNamein interface- jakarta.activation.DataSource
 
- 
getOutputStream- Specified by:
- getOutputStreamin interface- jakarta.activation.DataSource
- Throws:
- IOException
 
 
-