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 DataSource
IOException
DataSource.getInputStream()
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
DataSource.getOutputStream()
public String getContentType()
getContentType
in interface DataSource
DataSource.getContentType()
public String getName()
getName
in interface DataSource
DataSource.getName()
public byte[] getByteArray()
Connector Packaging TECHNICAL 4.3.0-beta-3 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.