public class BinaryStreamImpl extends ByteArrayInputStream implements BinaryStream
BinaryStream
buf, 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, skip
read
public BinaryStreamImpl(byte[] bytes)
bytes
- The bytes to use backing the streampublic InputStream getInputStream()
BinaryStream
getInputStream
in interface BinaryStream
public byte[] getBytes()
BinaryStream
getBytes
in interface BinaryStream
public long getLength()
BinaryStream
getLength
in interface BinaryStream
public void release()
BinaryStream
release
in interface BinaryStream
Copyright © 2019 JBoss by Red Hat. All rights reserved.