org.msgpack.unpacker
Class Converter

java.lang.Object
  extended by org.msgpack.unpacker.AbstractUnpacker
      extended by org.msgpack.unpacker.Converter
All Implemented Interfaces:
Closeable, Iterable<Value>, Unpacker
Direct Known Subclasses:
JSONUnpacker

public class Converter
extends AbstractUnpacker


Field Summary
protected  Value value
           
 
Fields inherited from class org.msgpack.unpacker.AbstractUnpacker
msgpack
 
Constructor Summary
Converter(MessagePack msgpack, Value value)
           
Converter(Value value)
           
 
Method Summary
 void close()
           
protected  Value nextValue()
           
 int readArrayBegin()
           
 void readArrayEnd(boolean check)
           
 BigInteger readBigInteger()
           
 boolean readBoolean()
           
 byte readByte()
           
 byte[] readByteArray()
           
 double readDouble()
           
 float readFloat()
           
 int readInt()
           
 long readLong()
           
 int readMapBegin()
           
 void readMapEnd(boolean check)
           
 void readNil()
           
 short readShort()
           
 String readString()
           
 Value readValue()
           
protected  void readValue(Unconverter uc)
           
 void reset()
           
 void skip()
           
 boolean tryReadNil()
           
 boolean trySkipNil()
           
 
Methods inherited from class org.msgpack.unpacker.AbstractUnpacker
iterator, read, read, read, read, readArrayEnd, readByteBuffer, readMapEnd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected Value value
Constructor Detail

Converter

public Converter(Value value)

Converter

public Converter(MessagePack msgpack,
                 Value value)
Method Detail

nextValue

protected Value nextValue()
                   throws IOException
Throws:
IOException

tryReadNil

public boolean tryReadNil()
                   throws IOException
Specified by:
tryReadNil in class AbstractUnpacker
Throws:
IOException

trySkipNil

public boolean trySkipNil()
                   throws IOException
Throws:
IOException

readNil

public void readNil()
             throws IOException
Throws:
IOException

readBoolean

public boolean readBoolean()
                    throws IOException
Throws:
IOException

readByte

public byte readByte()
              throws IOException
Throws:
IOException

readShort

public short readShort()
                throws IOException
Throws:
IOException

readInt

public int readInt()
            throws IOException
Throws:
IOException

readLong

public long readLong()
              throws IOException
Throws:
IOException

readBigInteger

public BigInteger readBigInteger()
                          throws IOException
Throws:
IOException

readFloat

public float readFloat()
                throws IOException
Throws:
IOException

readDouble

public double readDouble()
                  throws IOException
Throws:
IOException

readByteArray

public byte[] readByteArray()
                     throws IOException
Throws:
IOException

readString

public String readString()
                  throws IOException
Throws:
IOException

readArrayBegin

public int readArrayBegin()
                   throws IOException
Throws:
IOException

readArrayEnd

public void readArrayEnd(boolean check)
                  throws IOException
Throws:
IOException

readMapBegin

public int readMapBegin()
                 throws IOException
Throws:
IOException

readMapEnd

public void readMapEnd(boolean check)
                throws IOException
Throws:
IOException

readValue

public Value readValue()
                throws IOException
Specified by:
readValue in interface Unpacker
Overrides:
readValue in class AbstractUnpacker
Throws:
IOException

readValue

protected void readValue(Unconverter uc)
                  throws IOException
Specified by:
readValue in class AbstractUnpacker
Throws:
IOException

skip

public void skip()
          throws IOException
Throws:
IOException

reset

public void reset()

close

public void close()
           throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.