org.joda.beans.ser.bin
Class MsgPackVisualizer

java.lang.Object
  extended by org.joda.beans.ser.bin.MsgPack
      extended by org.joda.beans.ser.bin.MsgPackInput
          extended by org.joda.beans.ser.bin.MsgPackVisualizer

public final class MsgPackVisualizer
extends MsgPackInput

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  void readArrayItem()
           
protected  void readMapKey()
           
protected  void readMapValue()
           
 void visualize()
          Visualizes the data in the stream.
 
Methods inherited from class org.joda.beans.ser.bin.MsgPackInput
readAll, readObject, skipObject
 
Methods inherited from class org.joda.beans.ser.bin.MsgPack
isArray, isIntegral, isMap, isString, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsgPackVisualizer

public MsgPackVisualizer(byte[] bytes)
Creates an instance.

Parameters:
bytes - the bytes to read, not null

MsgPackVisualizer

public MsgPackVisualizer(InputStream stream)
Creates an instance.

Parameters:
stream - the stream to read from, not null

MsgPackVisualizer

public MsgPackVisualizer(DataInputStream stream)
Creates an instance.

Parameters:
stream - the stream to read from, not null
Method Detail

visualize

public void visualize()
Visualizes the data in the stream.


readArrayItem

protected void readArrayItem()
                      throws IOException
Overrides:
readArrayItem in class MsgPackInput
Throws:
IOException

readMapKey

protected void readMapKey()
                   throws IOException
Overrides:
readMapKey in class MsgPackInput
Throws:
IOException

readMapValue

protected void readMapValue()
                     throws IOException
Overrides:
readMapValue in class MsgPackInput
Throws:
IOException

handleObjectStart

protected void handleObjectStart()
Overrides:
handleObjectStart in class MsgPackInput

handleBoolean

protected void handleBoolean(boolean bool)
Overrides:
handleBoolean in class MsgPackInput

handleNil

protected void handleNil()
Overrides:
handleNil in class MsgPackInput

handleInt

protected void handleInt(int value)
Overrides:
handleInt in class MsgPackInput

handleUnsignedLong

protected void handleUnsignedLong(long value)
Overrides:
handleUnsignedLong in class MsgPackInput

handleSignedLong

protected void handleSignedLong(long value)
Overrides:
handleSignedLong in class MsgPackInput

handleFloat

protected void handleFloat(float value)
Overrides:
handleFloat in class MsgPackInput

handleDouble

protected void handleDouble(double value)
Overrides:
handleDouble in class MsgPackInput

handleUnknown

protected void handleUnknown(byte b)
Overrides:
handleUnknown in class MsgPackInput

handleString

protected void handleString(String str)
Overrides:
handleString in class MsgPackInput

handleArrayHeader

protected void handleArrayHeader(int size)
Overrides:
handleArrayHeader in class MsgPackInput

handleMapHeader

protected void handleMapHeader(int size)
Overrides:
handleMapHeader in class MsgPackInput

handleBinary

protected void handleBinary(byte[] bytes)
Overrides:
handleBinary in class MsgPackInput

handleExtension

protected void handleExtension(int type,
                               byte[] bytes)
                        throws IOException
Overrides:
handleExtension in class MsgPackInput
Throws:
IOException


Copyright © 2007–2014 Joda.org. All rights reserved.