Package org.apache.cxf.attachment
Class ByteDataSource
java.lang.Object
org.apache.cxf.attachment.ByteDataSource
- All Implemented Interfaces:
jakarta.activation.DataSource
-
Constructor Summary
ConstructorDescriptionByteDataSource
(byte[] dataParam) ByteDataSource
(byte[] dataParam, int offsetParam, int lengthParam) ByteDataSource
(byte[] dataParam, String ct) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getData()
getName()
void
setContentType
(String contentTypeParam) void
setData
(byte[] dataParam) void
-
Constructor Details
-
ByteDataSource
public ByteDataSource(byte[] dataParam) -
ByteDataSource
-
ByteDataSource
public ByteDataSource(byte[] dataParam, int offsetParam, int lengthParam)
-
-
Method Details
-
getData
public byte[] getData() -
setData
public void setData(byte[] dataParam) -
setContentType
-
setName
-
getContentType
- Specified by:
getContentType
in interfacejakarta.activation.DataSource
-
getInputStream
- Specified by:
getInputStream
in interfacejakarta.activation.DataSource
- Throws:
IOException
-
getName
- Specified by:
getName
in interfacejakarta.activation.DataSource
-
getOutputStream
- Specified by:
getOutputStream
in interfacejakarta.activation.DataSource
- Throws:
IOException
-