|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.ser.bin.MsgPackVisualizer
public final class MsgPackVisualizer
Allows MsgPack data to be visualized.
| Constructor Summary | |
|---|---|
MsgPackVisualizer(byte[] bytes)
Creates an instance. |
|
MsgPackVisualizer(DataInputStream stream)
Creates an instance. |
|
MsgPackVisualizer(InputStream stream)
Creates an instance. |
|
| Method Summary | |
|---|---|
protected void |
handleArrayHeader(int size)
|
protected void |
handleBinary(byte[] bytes)
|
protected void |
handleBoolean(boolean bool)
|
protected void |
handleDouble(double value)
|
protected void |
handleExtension(int type,
byte[] bytes)
|
protected void |
handleFloat(float value)
|
protected void |
handleInt(int value)
|
protected void |
handleMapHeader(int size)
|
protected void |
handleNil()
|
protected void |
handleObjectStart()
|
protected void |
handleSignedLong(long value)
|
protected void |
handleString(String str)
|
protected void |
handleUnknown(byte b)
|
protected void |
handleUnsignedLong(long value)
|
protected static boolean |
isArray(int typeByte)
|
protected static boolean |
isIntegral(int typeByte)
|
protected static boolean |
isMap(int typeByte)
|
protected static boolean |
isString(int typeByte)
|
protected void |
readAll()
Reads all the data in the stream, closing the stream. |
protected void |
readArrayItem()
|
protected void |
readMapKey()
|
protected void |
readMapValue()
|
protected void |
readObject(int unsigned)
|
static void |
skipObject(DataInputStream input)
Skips over the next object in an input stream. |
protected static String |
toHex(int b)
Converts a byte to a hex string for debugging. |
void |
visualize()
Visualizes the data in the stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MsgPackVisualizer(byte[] bytes)
bytes - the bytes to read, not nullpublic MsgPackVisualizer(InputStream stream)
stream - the stream to read from, not nullpublic MsgPackVisualizer(DataInputStream stream)
stream - the stream to read from, not null| Method Detail |
|---|
public void visualize()
protected void readArrayItem()
throws IOException
IOException
protected void readMapKey()
throws IOException
IOException
protected void readMapValue()
throws IOException
IOExceptionprotected void handleObjectStart()
protected void handleBoolean(boolean bool)
protected void handleNil()
protected void handleInt(int value)
protected void handleUnsignedLong(long value)
protected void handleSignedLong(long value)
protected void handleFloat(float value)
protected void handleDouble(double value)
protected void handleUnknown(byte b)
protected void handleString(String str)
protected void handleArrayHeader(int size)
protected void handleMapHeader(int size)
protected void handleBinary(byte[] bytes)
protected void handleExtension(int type,
byte[] bytes)
throws IOException
IOExceptionprotected void readAll()
protected void readObject(int unsigned)
throws IOException
IOException
public static void skipObject(DataInputStream input)
throws IOException
input - the input stream, not null
IOException - if an error occursprotected static String toHex(int b)
b - the byte
protected static boolean isMap(int typeByte)
throws IOException
IOException
protected static boolean isArray(int typeByte)
throws IOException
IOException
protected static boolean isString(int typeByte)
throws IOException
IOException
protected static boolean isIntegral(int typeByte)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||