public class ByteArrayDataSource
extends java.lang.Object
implements javax.activation.DataSource
Constructor and Description |
---|
ByteArrayDataSource(java.io.InputStream is,
java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream()
Return an InputStream for the data.
|
java.lang.String |
getName() |
java.io.OutputStream |
getOutputStream() |
public ByteArrayDataSource(java.io.InputStream is, java.lang.String type)
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.lang.String getName()
getName
in interface javax.activation.DataSource
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.