public class InputByteBuffer
extends java.lang.Object
Constructor and Description |
---|
InputByteBuffer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dumpHex()
Return the bytes in hex format.
|
byte[] |
getData()
Returns the underlying byte array.
|
int |
getEnd() |
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 java.io.IOException
java.io.IOException
public final byte read(boolean invert) throws java.io.IOException
invert
- whether we want to invert all the bits.java.io.IOException
public final int tell()
public final void seek(int position)
public final int getEnd()
public final byte[] getData()
public java.lang.String dumpHex()
Copyright © 2012 The Apache Software Foundation