public class ByteBufferInputStreamProvider extends Object implements IHasInputStreamAndReader
InputStream provider based on a
ByteBuffer.| Constructor and Description |
|---|
ByteBufferInputStreamProvider(ByteBuffer aBuffer) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getByteBuffer() |
ByteBufferInputStream |
getInputStream()
Get the input stream to read from the object.
|
boolean |
isReadMultiple()
Check if the
InputStream from IHasInputStream.getInputStream() can be
acquired more than once. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetReaderpublic ByteBufferInputStreamProvider(@Nonnull ByteBuffer aBuffer)
@Nonnull @ReturnsMutableObject public final ByteBuffer getByteBuffer()
@Nonnull public final ByteBufferInputStream getInputStream()
IHasInputStreamInputStream needs to be created!getInputStream in interface IHasInputStreamnull if resolving failed.public final boolean isReadMultiple()
IHasInputStreamInputStream from IHasInputStream.getInputStream() can be
acquired more than once.isReadMultiple in interface IHasInputStreamtrue if the input stream can be acquired more than
once, false if not.Copyright © 2014–2017 Philip Helger. All rights reserved.