public class ByteArrayInputStreamProvider extends Object implements IHasByteArray, Serializable
InputStream provider based on a byte array.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_COPY_NEEDED |
| Constructor and Description |
|---|
ByteArrayInputStreamProvider(byte[] aData) |
ByteArrayInputStreamProvider(byte[] aData,
boolean bCopyNeeded) |
ByteArrayInputStreamProvider(byte[] aData,
int nOfs,
int nLen) |
ByteArrayInputStreamProvider(byte[] aData,
int nOfs,
int nLen,
boolean bCopyNeeded) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
bytes() |
int |
getOffset() |
boolean |
isCopy() |
int |
size() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllBytes, getHexEncoded, getInputStream, hasOffset, isEmpty, isNotEmpty, isReadMultiple, startsWith, writeTogetBufferedReader, getReadergetBufferedInputStreampublic static final boolean DEFAULT_COPY_NEEDED
public ByteArrayInputStreamProvider(@Nonnull byte[] aData)
public ByteArrayInputStreamProvider(@Nonnull byte[] aData, boolean bCopyNeeded)
public ByteArrayInputStreamProvider(@Nonnull byte[] aData, @Nonnegative int nOfs, @Nonnegative int nLen)
public ByteArrayInputStreamProvider(@Nonnull byte[] aData, @Nonnegative int nOfs, @Nonnegative int nLen, boolean bCopyNeeded)
public final boolean isCopy()
isCopy in interface IHasByteArraytrue if the contained byte array was copied in the
constructor or not.@Nonnull @ReturnsMutableObject public final byte[] bytes()
bytes in interface IHasByteArraynull.@Nonnegative public final int getOffset()
getOffset in interface IHasByteArrayIHasByteArray.bytes(),
IHasSize.size()@Nonnegative public final int size()
Copyright © 2014–2020 Philip Helger. All rights reserved.