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