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
IOException
public final byte read(boolean invert) throws IOException
invert
- whether we want to invert all the bits.IOException
public 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 © 2017 The Apache Software Foundation. All rights reserved.