public class ByteArrayDatasource extends Object implements DataSource
DataSource| Constructor and Description |
|---|
ByteArrayDatasource(byte[] byteArray)
Creates a new ByteArrayDataSource from a byte array
|
ByteArrayDatasource(byte[] byteArray,
String contentType)
Creates a new ByteArrayDataSource from a byte array
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getByteArray() |
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public ByteArrayDatasource(byte[] byteArray)
byteArray - public ByteArrayDatasource(byte[] byteArray,
String contentType)
byteArray - public InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionDataSource.getInputStream()public OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionDataSource.getOutputStream()public String getContentType()
getContentType in interface DataSourceDataSource.getContentType()public String getName()
getName in interface DataSourceDataSource.getName()public byte[] getByteArray()
Connector Packaging generic 4.4.0 API
Copyright © {inceptionYear}-2023 eHealth. All Rights Reserved.