| java.lang.Object org.apache.commons.mail.ByteArrayDataSource
ByteArrayDataSource | public class ByteArrayDataSource implements DataSource(Code) | | This class implements a typed DataSource from:
- an InputStream
- a byte array
- a String
since: 1.0 author: Colin Chalmers author: Jon S. Stevens author: Brett McLaughlin version: $Id: ByteArrayDataSource.java 225600 2005-07-27 20:16:23Z rdonkin $ |
BUFFER_SIZE | final public static int BUFFER_SIZE(Code) | | define the buffer size
|
ByteArrayDataSource | public ByteArrayDataSource(byte[] data, String aType) throws IOException(Code) | | Create a datasource from a byte array.
Parameters: data - A byte[]. Parameters: aType - A String. throws: IOException - IOException since: 1.0 |
ByteArrayDataSource | public ByteArrayDataSource(InputStream aIs, String aType) throws IOException(Code) | | Create a datasource from an input stream.
Parameters: aIs - An InputStream. Parameters: aType - A String. throws: IOException - IOException since: 1.0 |
ByteArrayDataSource | public ByteArrayDataSource(String data, String aType) throws IOException(Code) | | Create a datasource from a String.
Parameters: data - A String. Parameters: aType - A String. throws: IOException - IOException since: 1.0 |
getContentType | public String getContentType()(Code) | | Get the content type.
A String. since: 1.0 |
getName | public String getName()(Code) | | Get the name.
A String. since: 1.0 |
getOutputStream | public OutputStream getOutputStream()(Code) | | Get the OutputStream to write to
An OutputStream since: 1.0 |
|
|