org.ferris.dyndns.jmce.mail
Class ByteArrayDataSource
java.lang.Object
org.ferris.dyndns.jmce.mail.ByteArrayDataSource
- All Implemented Interfaces:
- DataSource
public class ByteArrayDataSource
- extends Object
- implements DataSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayDataSource
public ByteArrayDataSource(InputStream is,
String type)
ByteArrayDataSource
public ByteArrayDataSource(byte[] data,
String type)
ByteArrayDataSource
public ByteArrayDataSource(String data,
String type)
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream
in interface DataSource
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Specified by:
getOutputStream
in interface DataSource
- Throws:
IOException
getContentType
public String getContentType()
- Specified by:
getContentType
in interface DataSource
getName
public String getName()
- Specified by:
getName
in interface DataSource
Copyright © May 7, 2009-2011 The Ferris Foundation. All Rights Reserved.