org.msgpack.packer
Interface Packer

All Superinterfaces:
Closeable, Flushable
All Known Subinterfaces:
BufferPacker
All Known Implementing Classes:
AbstractPacker, JSONBufferPacker, JSONPacker, MessagePackBufferPacker, MessagePackPacker, Unconverter

public interface Packer
extends Closeable, Flushable

Standard serializer in MessagePack for Java. It allows users to serialize objects like String, List, Map, byte[], primitive types and so on.

Version:
0.6.0

Method Summary
 Packer write(BigInteger o)
           
 Packer write(boolean o)
           
 Packer write(Boolean o)
           
 Packer write(byte o)
           
 Packer write(Byte o)
           
 Packer write(byte[] o)
           
 Packer write(byte[] o, int off, int len)
           
 Packer write(ByteBuffer o)
           
 Packer write(double o)
           
 Packer write(Double o)
           
 Packer write(float o)
           
 Packer write(Float o)
           
 Packer write(int o)
           
 Packer write(Integer o)
           
 Packer write(long o)
           
 Packer write(Long o)
           
 Packer write(Object o)
           
 Packer write(short o)
           
 Packer write(Short o)
           
 Packer write(String o)
           
 Packer write(Value v)
           
 Packer writeArrayBegin(int size)
           
 Packer writeArrayEnd()
           
 Packer writeArrayEnd(boolean check)
           
 Packer writeMapBegin(int size)
           
 Packer writeMapEnd()
           
 Packer writeMapEnd(boolean check)
           
 Packer writeNil()
           
 
Methods inherited from interface java.io.Closeable
close
 
Methods inherited from interface java.io.Flushable
flush
 

Method Detail

write

Packer write(boolean o)
             throws IOException
Throws:
IOException

write

Packer write(byte o)
             throws IOException
Throws:
IOException

write

Packer write(short o)
             throws IOException
Throws:
IOException

write

Packer write(int o)
             throws IOException
Throws:
IOException

write

Packer write(long o)
             throws IOException
Throws:
IOException

write

Packer write(float o)
             throws IOException
Throws:
IOException

write

Packer write(double o)
             throws IOException
Throws:
IOException

write

Packer write(Boolean o)
             throws IOException
Throws:
IOException

write

Packer write(Byte o)
             throws IOException
Throws:
IOException

write

Packer write(Short o)
             throws IOException
Throws:
IOException

write

Packer write(Integer o)
             throws IOException
Throws:
IOException

write

Packer write(Long o)
             throws IOException
Throws:
IOException

write

Packer write(Float o)
             throws IOException
Throws:
IOException

write

Packer write(Double o)
             throws IOException
Throws:
IOException

write

Packer write(BigInteger o)
             throws IOException
Throws:
IOException

write

Packer write(byte[] o)
             throws IOException
Throws:
IOException

write

Packer write(byte[] o,
             int off,
             int len)
             throws IOException
Throws:
IOException

write

Packer write(ByteBuffer o)
             throws IOException
Throws:
IOException

write

Packer write(String o)
             throws IOException
Throws:
IOException

write

Packer write(Value v)
             throws IOException
Throws:
IOException

write

Packer write(Object o)
             throws IOException
Throws:
IOException

writeNil

Packer writeNil()
                throws IOException
Throws:
IOException

writeArrayBegin

Packer writeArrayBegin(int size)
                       throws IOException
Throws:
IOException

writeArrayEnd

Packer writeArrayEnd(boolean check)
                     throws IOException
Throws:
IOException

writeArrayEnd

Packer writeArrayEnd()
                     throws IOException
Throws:
IOException

writeMapBegin

Packer writeMapBegin(int size)
                     throws IOException
Throws:
IOException

writeMapEnd

Packer writeMapEnd(boolean check)
                   throws IOException
Throws:
IOException

writeMapEnd

Packer writeMapEnd()
                   throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.