org.msgpack.packer
Class AbstractPacker

java.lang.Object
  extended by org.msgpack.packer.AbstractPacker
All Implemented Interfaces:
Closeable, Flushable, Packer
Direct Known Subclasses:
JSONPacker, MessagePackPacker, Unconverter

public abstract class AbstractPacker
extends Object
implements Packer


Field Summary
protected  MessagePack msgpack
           
 
Constructor Summary
protected AbstractPacker(MessagePack msgpack)
           
 
Method Summary
 void close()
           
 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 writeArrayEnd()
           
protected abstract  void writeBigInteger(BigInteger v)
           
protected abstract  void writeBoolean(boolean v)
           
protected abstract  void writeByte(byte v)
           
protected  void writeByteArray(byte[] b)
           
protected abstract  void writeByteArray(byte[] b, int off, int len)
           
protected abstract  void writeByteBuffer(ByteBuffer bb)
           
protected abstract  void writeDouble(double v)
           
protected abstract  void writeFloat(float v)
           
protected abstract  void writeInt(int v)
           
protected abstract  void writeLong(long v)
           
 Packer writeMapEnd()
           
protected abstract  void writeShort(short v)
           
protected abstract  void writeString(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.msgpack.packer.Packer
writeArrayBegin, writeArrayEnd, writeMapBegin, writeMapEnd, writeNil
 
Methods inherited from interface java.io.Flushable
flush
 

Field Detail

msgpack

protected MessagePack msgpack
Constructor Detail

AbstractPacker

protected AbstractPacker(MessagePack msgpack)
Method Detail

write

public Packer write(boolean o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(byte o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(short o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(int o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(long o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(float o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(double o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(Boolean o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(Byte o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(Short o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(Integer o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(Long o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(BigInteger o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(Float o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(Double o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(byte[] o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(byte[] o,
                    int off,
                    int len)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(ByteBuffer o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(String o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

public Packer write(Object o)
             throws IOException
Specified by:
write in interface Packer
Throws:
IOException

write

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

writeArrayEnd

public Packer writeArrayEnd()
                     throws IOException
Specified by:
writeArrayEnd in interface Packer
Throws:
IOException

writeMapEnd

public Packer writeMapEnd()
                   throws IOException
Specified by:
writeMapEnd in interface Packer
Throws:
IOException

close

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

writeBoolean

protected abstract void writeBoolean(boolean v)
                              throws IOException
Throws:
IOException

writeByte

protected abstract void writeByte(byte v)
                           throws IOException
Throws:
IOException

writeShort

protected abstract void writeShort(short v)
                            throws IOException
Throws:
IOException

writeInt

protected abstract void writeInt(int v)
                          throws IOException
Throws:
IOException

writeLong

protected abstract void writeLong(long v)
                           throws IOException
Throws:
IOException

writeBigInteger

protected abstract void writeBigInteger(BigInteger v)
                                 throws IOException
Throws:
IOException

writeFloat

protected abstract void writeFloat(float v)
                            throws IOException
Throws:
IOException

writeDouble

protected abstract void writeDouble(double v)
                             throws IOException
Throws:
IOException

writeByteArray

protected void writeByteArray(byte[] b)
                       throws IOException
Throws:
IOException

writeByteArray

protected abstract void writeByteArray(byte[] b,
                                       int off,
                                       int len)
                                throws IOException
Throws:
IOException

writeByteBuffer

protected abstract void writeByteBuffer(ByteBuffer bb)
                                 throws IOException
Throws:
IOException

writeString

protected abstract void writeString(String s)
                             throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.