public class BinaryStreamImpl extends ByteArrayInputStream implements BinaryStream
BinaryStreambuf, count, mark, pos| Constructor and Description |
|---|
BinaryStreamImpl(byte[] bytes)
Constructs a BinaryStreamImpl
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Access to the bytes.
|
InputStream |
getInputStream()
Retrieve the input stream.
|
long |
getLength()
Retrieve the length of the input stream
|
void |
release()
Release any underlying resources.
|
available, close, mark, markSupported, read, read, reset, skipreadpublic BinaryStreamImpl(byte[] bytes)
bytes - The bytes to use backing the streampublic InputStream getInputStream()
BinaryStreamgetInputStream in interface BinaryStreampublic byte[] getBytes()
BinaryStreamgetBytes in interface BinaryStreampublic long getLength()
BinaryStreamgetLength in interface BinaryStreampublic void release()
BinaryStreamrelease in interface BinaryStreamCopyright © 2017 JBoss by Red Hat. All rights reserved.