org.msgpack.unpacker
Class MessagePackUnpacker

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

public class MessagePackUnpacker
extends AbstractUnpacker


Field Summary
protected  Input in
           
 
Fields inherited from class org.msgpack.unpacker.AbstractUnpacker
msgpack
 
Constructor Summary
protected MessagePackUnpacker(MessagePack msgpack, Input in)
           
  MessagePackUnpacker(MessagePack msgpack, InputStream stream)
           
 
Method Summary
 void close()
           
 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()
           
protected  void readValue(Unconverter uc)
           
 void reset()
           
 void skip()
           
protected  boolean tryReadNil()
           
 boolean trySkipNil()
           
 
Methods inherited from class org.msgpack.unpacker.AbstractUnpacker
iterator, read, read, read, read, readArrayEnd, readByteBuffer, readMapEnd, readValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected final Input in
Constructor Detail

MessagePackUnpacker

public MessagePackUnpacker(MessagePack msgpack,
                           InputStream stream)

MessagePackUnpacker

protected MessagePackUnpacker(MessagePack msgpack,
                              Input in)
Method Detail

tryReadNil

protected 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

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.