public class BinaryStreamImpl extends java.io.ByteArrayInputStream implements BinaryStream
BinaryStream| Constructor and Description |
|---|
BinaryStreamImpl(byte[] bytes)
Constructs a BinaryStreamImpl
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Access to the bytes.
|
java.io.InputStream |
getInputStream()
Retrieve the input stream.
|
long |
getLength()
Retrieve the length of the input stream
|
void |
release()
Release any underlying resources.
|
public BinaryStreamImpl(byte[] bytes)
bytes - The bytes to use backing the streampublic java.io.InputStream getInputStream()
BinaryStreamgetInputStream in interface BinaryStreampublic byte[] getBytes()
BinaryStreamgetBytes in interface BinaryStreampublic long getLength()
BinaryStreamgetLength in interface BinaryStreampublic void release()
BinaryStreamrelease in interface BinaryStreamCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.