public class ByteArrayInputStreamProvider extends Object implements IHasInputStreamAndReader, Serializable
InputStream provider based on a byte array.| Constructor and Description |
|---|
ByteArrayInputStreamProvider(byte[] aData) |
ByteArrayInputStreamProvider(byte[] aData,
int nOfs,
int nLen) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData() |
InputStream |
getInputStream()
Get the input stream to read from the object.
|
int |
getLength() |
int |
getOffset() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetReaderpublic ByteArrayInputStreamProvider(@Nonnull byte[] aData)
public ByteArrayInputStreamProvider(@Nonnull byte[] aData, @Nonnegative int nOfs, @Nonnegative int nLen)
@Nonnull @ReturnsMutableCopy public byte[] getData()
@Nonnegative public int getOffset()
@Nonnegative public int getLength()
@Nonnull public final InputStream getInputStream()
IHasInputStreamInputStream needs to be created!getInputStream in interface IHasInputStreamnull if resolving failed.Copyright © 2014–2017 Philip Helger. All rights reserved.