org.cip4.jdflib.util
Class MimeUtil.ByteArrayDataSource

java.lang.Object
  extended by 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

Constructor Summary
MimeUtil.ByteArrayDataSource(ByteArrayIOStream _ioStream, String _contentType)
          create a data source from a byte array
 
Method Summary
 String getContentType()
          * (non-Javadoc)
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.