org.msgpack.packer
Class Unconverter

java.lang.Object
  extended by org.msgpack.packer.AbstractPacker
      extended by org.msgpack.packer.Unconverter
All Implemented Interfaces:
Closeable, Flushable, Packer

public class Unconverter
extends AbstractPacker


Field Summary
 
Fields inherited from class org.msgpack.packer.AbstractPacker
msgpack
 
Constructor Summary
Unconverter()
           
Unconverter(MessagePack msgpack)
           
 
Method Summary
 void close()
           
 void flush()
           
 Value getResult()
           
 void resetResult()
           
 Packer write(Value v)
           
 Packer writeArrayBegin(int size)
           
 Packer writeArrayEnd(boolean check)
           
 void writeBigInteger(BigInteger v)
           
 void writeBoolean(boolean v)
           
 void writeByte(byte v)
           
 void writeByteArray(byte[] b, int off, int len)
           
 void writeByteBuffer(ByteBuffer bb)
           
 void writeDouble(double v)
           
 void writeFloat(float v)
           
 void writeInt(int v)
           
 void writeLong(long v)
           
 Packer writeMapBegin(int size)
           
 Packer writeMapEnd(boolean check)
           
 Packer writeNil()
           
 void writeShort(short v)
           
 void writeString(String s)
           
 
Methods inherited from class org.msgpack.packer.AbstractPacker
write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeArrayEnd, writeByteArray, writeMapEnd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Unconverter

public Unconverter()

Unconverter

public Unconverter(MessagePack msgpack)
Method Detail

getResult

public Value getResult()

resetResult

public void resetResult()

writeBoolean

public void writeBoolean(boolean v)
                  throws IOException
Specified by:
writeBoolean in class AbstractPacker
Throws:
IOException

writeByte

public void writeByte(byte v)
               throws IOException
Specified by:
writeByte in class AbstractPacker
Throws:
IOException

writeShort

public void writeShort(short v)
                throws IOException
Specified by:
writeShort in class AbstractPacker
Throws:
IOException

writeInt

public void writeInt(int v)
              throws IOException
Specified by:
writeInt in class AbstractPacker
Throws:
IOException

writeBigInteger

public void writeBigInteger(BigInteger v)
                     throws IOException
Specified by:
writeBigInteger in class AbstractPacker
Throws:
IOException

writeLong

public void writeLong(long v)
               throws IOException
Specified by:
writeLong in class AbstractPacker
Throws:
IOException

writeFloat

public void writeFloat(float v)
                throws IOException
Specified by:
writeFloat in class AbstractPacker
Throws:
IOException

writeDouble

public void writeDouble(double v)
                 throws IOException
Specified by:
writeDouble in class AbstractPacker
Throws:
IOException

writeByteArray

public void writeByteArray(byte[] b,
                           int off,
                           int len)
                    throws IOException
Specified by:
writeByteArray in class AbstractPacker
Throws:
IOException

writeByteBuffer

public void writeByteBuffer(ByteBuffer bb)
                     throws IOException
Specified by:
writeByteBuffer in class AbstractPacker
Throws:
IOException

writeString

public void writeString(String s)
                 throws IOException
Specified by:
writeString in class AbstractPacker
Throws:
IOException

writeNil

public Packer writeNil()
                throws IOException
Throws:
IOException

writeArrayBegin

public Packer writeArrayBegin(int size)
                       throws IOException
Throws:
IOException

writeArrayEnd

public Packer writeArrayEnd(boolean check)
                     throws IOException
Throws:
IOException

writeMapBegin

public Packer writeMapBegin(int size)
                     throws IOException
Throws:
IOException

writeMapEnd

public Packer writeMapEnd(boolean check)
                   throws IOException
Throws:
IOException

write

public Packer write(Value v)
             throws IOException
Specified by:
write in interface Packer
Overrides:
write in class AbstractPacker
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class AbstractPacker
Throws:
IOException


Copyright © 2011. All Rights Reserved.