|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.suberic.crypto.ByteArrayDataSource
A DataSource based off of a byte array.
| Constructor Summary | |
ByteArrayDataSource(byte[] newContent,
java.lang.String newName,
java.lang.String newContentType)
Creates a ByteArrayDataSource from the given byte array. |
|
| Method Summary | |
java.lang.String |
getContentType()
This method returns the MIME type of the data in the form of a string. |
java.io.InputStream |
getInputStream()
Returns a new ByteArrayInputStream based off of the byte array given as content. |
java.lang.String |
getName()
Return the name of this object where the name of the object is dependant on the nature of the underlying objects. |
java.io.OutputStream |
getOutputStream()
This method returns an OutputStream where the data can be written and throws the appropriate exception if it can not do so. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteArrayDataSource(byte[] newContent,
java.lang.String newName,
java.lang.String newContentType)
| Method Detail |
public java.lang.String getContentType()
getContentType in interface javax.activation.DataSourcepublic java.io.InputStream getInputStream()
getInputStream in interface javax.activation.DataSourcepublic java.lang.String getName()
getName in interface javax.activation.DataSource
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface javax.activation.DataSourcejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||