public class ByteArrayDataSource extends Object implements DataSource
| Constructor and Description |
|---|
ByteArrayDataSource(byte[] byteArray,
String contenttype)
Constructor with the bytearray and the contenttype.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getByteArray()
Gets the byte array.
|
InputStream |
getInputStream() |
String |
getName() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentType, getOutputStreampublic ByteArrayDataSource(byte[] byteArray,
String contenttype)
byteArray - the bytearray.contenttype - the contenttype.public byte[] getByteArray()
public InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOException - Signals that an I/O exception has occurred.DataSource.getInputStream()public String getName()
getName in interface DataSourceDataSource.getName()Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.