org.msgpack.unpacker
Class AbstractUnpacker

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

public abstract class AbstractUnpacker
extends Object
implements Unpacker


Field Summary
protected  MessagePack msgpack
           
 
Constructor Summary
protected AbstractUnpacker(MessagePack msgpack)
           
 
Method Summary
 UnpackerIterator iterator()
           
<T> T
read(Class<T> klass)
           
<T> T
read(T to)
           
<T> T
read(Template<T> tmpl)
           
<T> T
read(T to, Template<T> tmpl)
           
 void readArrayEnd()
           
 ByteBuffer readByteBuffer()
           
 void readMapEnd()
           
 Value readValue()
           
protected abstract  void readValue(Unconverter uc)
           
protected abstract  boolean tryReadNil()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.msgpack.unpacker.Unpacker
readArrayBegin, readArrayEnd, readBigInteger, readBoolean, readByte, readByteArray, readDouble, readFloat, readInt, readLong, readMapBegin, readMapEnd, readNil, readShort, readString, skip, trySkipNil
 
Methods inherited from interface java.io.Closeable
close
 

Field Detail

msgpack

protected MessagePack msgpack
Constructor Detail

AbstractUnpacker

protected AbstractUnpacker(MessagePack msgpack)
Method Detail

readByteBuffer

public ByteBuffer readByteBuffer()
                          throws IOException
Specified by:
readByteBuffer in interface Unpacker
Throws:
IOException

readArrayEnd

public void readArrayEnd()
                  throws IOException
Specified by:
readArrayEnd in interface Unpacker
Throws:
IOException

readMapEnd

public void readMapEnd()
                throws IOException
Specified by:
readMapEnd in interface Unpacker
Throws:
IOException

iterator

public UnpackerIterator iterator()
Specified by:
iterator in interface Iterable<Value>
Specified by:
iterator in interface Unpacker

readValue

protected abstract void readValue(Unconverter uc)
                           throws IOException
Throws:
IOException

readValue

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

tryReadNil

protected abstract boolean tryReadNil()
                               throws IOException
Throws:
IOException

read

public <T> T read(Class<T> klass)
       throws IOException
Specified by:
read in interface Unpacker
Throws:
IOException

read

public <T> T read(T to)
       throws IOException
Specified by:
read in interface Unpacker
Throws:
IOException

read

public <T> T read(Template<T> tmpl)
       throws IOException
Specified by:
read in interface Unpacker
Throws:
IOException

read

public <T> T read(T to,
                  Template<T> tmpl)
       throws IOException
Specified by:
read in interface Unpacker
Throws:
IOException


Copyright © 2011. All Rights Reserved.