public class OutputByteBuffer
extends java.lang.Object
| Constructor and Description |
|---|
OutputByteBuffer() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
dumpHex()
Return the bytes in hex format.
|
byte[] |
getData()
Returns the underlying byte array.
|
int |
getLength()
Returns the current length.
|
void |
reset()
Reset the byte buffer.
|
void |
write(byte b) |
void |
write(byte b,
boolean invert)
Write one byte to the byte buffer.
|
public void reset()
public final void write(byte b)
public final void write(byte b,
boolean invert)
invert - whether we want to invert all the bits.public final byte[] getData()
public final int getLength()
public java.lang.String dumpHex()
Copyright © 2012 The Apache Software Foundation