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()
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 © 2001-2018 Red Hat, Inc. All Rights Reserved.