public class InputStreamBytes extends Object implements Bytes
Bytes over a InputStream.| Constructor and Description |
|---|
InputStreamBytes(IoSupplier<InputStream> in) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
asInputStream()
Open an
InputStream for this instance. |
byte[] |
toByteArray()
Convert this instance to a byte array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasChunks, asChunks, asDataInput, create, create, create, empty, lazyViaDataOutput, lazyViaDataOutput, viaDataOutput, viaDataOutputpublic InputStreamBytes(IoSupplier<InputStream> in)
public InputStream asInputStream() throws IOException
BytesInputStream for this instance.asInputStream in interface BytesIOExceptionpublic byte[] toByteArray()
throws IOException
BytestoByteArray in interface BytesIOExceptionCopyright © 2017. All rights reserved.