|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jaulp.email.ByteArrayDataSource
public class ByteArrayDataSource
DataSource object for a byte array.
| Constructor Summary | |
|---|---|
ByteArrayDataSource(byte[] byteArray,
java.lang.String contenttype)
Constructor with the bytearray and the contenttype. |
|
| Method Summary | |
|---|---|
byte[] |
getByteArray()
Gets the byte array. |
java.lang.String |
getContentType()
|
java.io.InputStream |
getInputStream()
|
java.lang.String |
getName()
|
java.io.OutputStream |
getOutputStream()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayDataSource(byte[] byteArray,
java.lang.String contenttype)
byteArray - the bytearray.contenttype - the contenttype.| Method Detail |
|---|
public byte[] getByteArray()
public java.lang.String getContentType()
getContentType in interface javax.activation.DataSourceDataSource.getContentType()
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface javax.activation.DataSourcejava.io.IOException - Signals that an I/O exception has occurred.DataSource.getInputStream()public java.lang.String getName()
getName in interface javax.activation.DataSourceDataSource.getName()
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface javax.activation.DataSourcejava.io.IOException - Signals that an I/O exception has occurred.DataSource.getOutputStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||