org.cip4.jdflib.util
Class MimeUtil.ByteArrayDataSource
java.lang.Object
org.cip4.jdflib.util.MimeUtil.ByteArrayDataSource
- All Implemented Interfaces:
- DataSource
- Enclosing class:
- MimeUtil
public static class MimeUtil.ByteArrayDataSource
- extends Object
- implements DataSource
data source for binary files
- Author:
- prosirai
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MimeUtil.ByteArrayDataSource
public MimeUtil.ByteArrayDataSource(ByteArrayIOStream _ioStream,
String _contentType)
- create a data source from a byte array
- Parameters:
_ioStream - the ByteArrayIOStream to use_contentType - the content type of the contents
getContentType
public String getContentType()
- * (non-Javadoc)
- Specified by:
getContentType in interface DataSource
- See Also:
DataSource.getContentType()
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStream in interface DataSource
- See Also:
DataSource.getInputStream()
getName
public String getName()
- Specified by:
getName in interface DataSource
- See Also:
DataSource.getName()
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStream in interface DataSource
- See Also:
DataSource.getOutputStream()
Copyright © 2013. All Rights Reserved.