org.msgpack.unpacker
Interface Unpacker

All Superinterfaces:
Closeable, Iterable<Value>
All Known Subinterfaces:
BufferUnpacker
All Known Implementing Classes:
AbstractUnpacker, Converter, JSONBufferUnpacker, JSONUnpacker, MessagePackBufferUnpacker, MessagePackUnpacker

public interface Unpacker
extends Iterable<Value>, Closeable

Standard deserializer.

Version:
0.6.0

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)
           
 int readArrayBegin()
           
 void readArrayEnd()
           
 void readArrayEnd(boolean check)
           
 BigInteger readBigInteger()
           
 boolean readBoolean()
           
 byte readByte()
           
 byte[] readByteArray()
           
 ByteBuffer readByteBuffer()
           
 double readDouble()
           
 float readFloat()
           
 int readInt()
           
 long readLong()
           
 int readMapBegin()
           
 void readMapEnd()
           
 void readMapEnd(boolean check)
           
 void readNil()
           
 short readShort()
           
 String readString()
           
 Value readValue()
           
 void skip()
           
 boolean trySkipNil()
           
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

read

<T> T read(Class<T> klass)
       throws IOException
Throws:
IOException

read

<T> T read(T to)
       throws IOException
Throws:
IOException

read

<T> T read(Template<T> tmpl)
       throws IOException
Throws:
IOException

read

<T> T read(T to,
           Template<T> tmpl)
       throws IOException
Throws:
IOException

skip

void skip()
          throws IOException
Throws:
IOException

readArrayBegin

int readArrayBegin()
                   throws IOException
Throws:
IOException

readArrayEnd

void readArrayEnd(boolean check)
                  throws IOException
Throws:
IOException

readArrayEnd

void readArrayEnd()
                  throws IOException
Throws:
IOException

readMapBegin

int readMapBegin()
                 throws IOException
Throws:
IOException

readMapEnd

void readMapEnd(boolean check)
                throws IOException
Throws:
IOException

readMapEnd

void readMapEnd()
                throws IOException
Throws:
IOException

readNil

void readNil()
             throws IOException
Throws:
IOException

trySkipNil

boolean trySkipNil()
                   throws IOException
Throws:
IOException

readBoolean

boolean readBoolean()
                    throws IOException
Throws:
IOException

readByte

byte readByte()
              throws IOException
Throws:
IOException

readShort

short readShort()
                throws IOException
Throws:
IOException

readInt

int readInt()
            throws IOException
Throws:
IOException

readLong

long readLong()
              throws IOException
Throws:
IOException

readBigInteger

BigInteger readBigInteger()
                          throws IOException
Throws:
IOException

readFloat

float readFloat()
                throws IOException
Throws:
IOException

readDouble

double readDouble()
                  throws IOException
Throws:
IOException

readByteArray

byte[] readByteArray()
                     throws IOException
Throws:
IOException

readByteBuffer

ByteBuffer readByteBuffer()
                          throws IOException
Throws:
IOException

readString

String readString()
                  throws IOException
Throws:
IOException

readValue

Value readValue()
                throws IOException
Throws:
IOException

iterator

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


Copyright © 2011. All Rights Reserved.