|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.mail.util.ByteArrayDataSource
public class ByteArrayDataSource
This is a DataSource
that reads input from a stream and captures it into a ByteArray. This
is useful for capturing strea data into emails for example.
Constructor Summary | |
---|---|
ByteArrayDataSource(java.io.InputStream inputStream,
java.lang.String contentType)
Create a datasource from an input stream. |
Method Summary | |
---|---|
java.lang.String |
getContentType()
Get the content type. |
java.io.InputStream |
getInputStream()
Get the input stream. |
java.lang.String |
getName()
Get the name. |
java.io.OutputStream |
getOutputStream()
Get the OutputStream to write to |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteArrayDataSource(java.io.InputStream inputStream, java.lang.String contentType) throws java.io.IOException
inputStream
- This is NOT closed as a result of this operationcontentType
- The content type of the data
java.io.IOException
Method Detail |
---|
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
java.io.IOException
public java.lang.String getName()
getName
in interface javax.activation.DataSource
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |