Package org.cip4.jdflib.util
Class MimeUtil.ByteArrayDataSource
java.lang.Object
org.cip4.jdflib.util.MimeUtil.ByteArrayDataSource
- All Implemented Interfaces:
jakarta.activation.DataSource
- Enclosing class:
- MimeUtil
public static class MimeUtil.ByteArrayDataSource
extends Object
implements jakarta.activation.DataSource
data source for binary files
-
Constructor Summary
ConstructorsConstructorDescriptionByteArrayDataSource(ByteArrayIOStream _ioStream, String _contentType) create a data source from a byte array -
Method Summary
-
Constructor Details
-
ByteArrayDataSource
create a data source from a byte array- Parameters:
_ioStream- the ByteArrayIOStream to use_contentType- the content type of the contents
-
-
Method Details
-
getContentType
* (non-Javadoc)- Specified by:
getContentTypein interfacejakarta.activation.DataSource- See Also:
-
DataSource.getContentType()
-
getInputStream
- Specified by:
getInputStreamin interfacejakarta.activation.DataSource- See Also:
-
DataSource.getInputStream()
-
getName
- Specified by:
getNamein interfacejakarta.activation.DataSource- See Also:
-
DataSource.getName()
-
getOutputStream
- Specified by:
getOutputStreamin interfacejakarta.activation.DataSource- See Also:
-
DataSource.getOutputStream()
-