Class ByteArrayDataSource
- java.lang.Object
-
- org.apache.openmeetings.util.mail.ByteArrayDataSource
-
- All Implemented Interfaces:
DataSource
public class ByteArrayDataSource extends Object implements DataSource
-
-
Constructor Summary
Constructors Constructor Description ByteArrayDataSource(byte[] data, String type)ByteArrayDataSource(InputStream is, String type)ByteArrayDataSource(String data, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()InputStreamgetInputStream()StringgetName()OutputStreamgetOutputStream()
-
-
-
Constructor Detail
-
ByteArrayDataSource
public ByteArrayDataSource(InputStream is, String type)
-
ByteArrayDataSource
public ByteArrayDataSource(byte[] data, String type)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceDataSource- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin interfaceDataSource- Throws:
IOException
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceDataSource
-
getName
public String getName()
- Specified by:
getNamein interfaceDataSource
-
-