Package com.google.code.yanf4j.buffer
Class IoBufferHexDumper
java.lang.Object
com.google.code.yanf4j.buffer.IoBufferHexDumper
Provides utility methods to dump an
IoBuffer
into a hex formatted string.- Version:
- $Rev: 686598 $, $Date: 2008-08-17 12:58:23 +0200 (Sun, 17 Aug 2008) $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]
The high digits lookup table.private static final byte[]
The low digits lookup table. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getHexdump
(IoBuffer in, int lengthLimit) Dumps anIoBuffer
to a hex formatted string.
-
Field Details
-
highDigits
private static final byte[] highDigitsThe high digits lookup table. -
lowDigits
private static final byte[] lowDigitsThe low digits lookup table.
-
-
Constructor Details
-
IoBufferHexDumper
IoBufferHexDumper()
-
-
Method Details
-
getHexdump
Dumps anIoBuffer
to a hex formatted string.- Parameters:
in
- the buffer to dumplengthLimit
- the limit at which hex dumping will stop- Returns:
- a hex formatted string representation of the in
invalid reference
Iobuffer
-