public class InputByteBuffer extends Object
| Constructor and Description |
|---|
InputByteBuffer() |
| Modifier and Type | Method and Description |
|---|---|
String |
dumpHex()
Return the bytes in hex format.
|
byte[] |
getData()
Returns the underlying byte array.
|
int |
getEnd() |
boolean |
isEof() |
byte |
read() |
byte |
read(boolean invert)
Read one byte from the byte buffer.
|
void |
reset(byte[] data,
int start,
int end)
Reset the byte buffer to the given byte range.
|
void |
seek(int position)
Set the current position.
|
int |
tell()
Return the current position.
|
public void reset(byte[] data,
int start,
int end)
public final byte read()
throws IOException
IOExceptionpublic final byte read(boolean invert)
throws IOException
invert - whether we want to invert all the bits.IOExceptionpublic final int tell()
public final void seek(int position)
public final int getEnd()
public final boolean isEof()
public final byte[] getData()
public String dumpHex()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.