public class ByteArrayDataSource extends Object implements IExtendedDataSource
DEFAULT_CONTENT_TYPE| Constructor and Description |
|---|
ByteArrayDataSource(byte[] aBytes,
String sContentType,
String sName) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
directGetBytes() |
String |
getContentType() |
com.helger.commons.io.stream.NonBlockingByteArrayInputStream |
getInputStream() |
String |
getName() |
com.helger.commons.io.stream.NonBlockingByteArrayOutputStream |
getOutputStream() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsDataHandler, getEncodingAware@Nonnull @ReturnsMutableObject(value="speed") public byte[] directGetBytes()
@Nonnull public com.helger.commons.io.stream.NonBlockingByteArrayInputStream getInputStream()
getInputStream in interface DataSource@Nonnull public com.helger.commons.io.stream.NonBlockingByteArrayOutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOException@Nonnull public String getContentType()
getContentType in interface DataSource@Nullable public String getName()
getName in interface DataSourceCopyright © 2014–2019 Philip Helger. All rights reserved.