org.msgpack.packer
Class MessagePackPacker
java.lang.Object
org.msgpack.packer.AbstractPacker
org.msgpack.packer.MessagePackPacker
- All Implemented Interfaces:
- Closeable, Flushable, Packer
- Direct Known Subclasses:
- MessagePackBufferPacker
public class MessagePackPacker
- extends AbstractPacker
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, write, writeArrayEnd, writeByteArray, writeMapEnd |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
protected final Output out
MessagePackPacker
public MessagePackPacker(MessagePack msgpack,
OutputStream stream)
MessagePackPacker
protected MessagePackPacker(MessagePack msgpack,
Output out)
writeByte
protected void writeByte(byte d)
throws IOException
- Specified by:
writeByte
in class AbstractPacker
- Throws:
IOException
writeShort
protected void writeShort(short d)
throws IOException
- Specified by:
writeShort
in class AbstractPacker
- Throws:
IOException
writeInt
protected void writeInt(int d)
throws IOException
- Specified by:
writeInt
in class AbstractPacker
- Throws:
IOException
writeLong
protected void writeLong(long d)
throws IOException
- Specified by:
writeLong
in class AbstractPacker
- Throws:
IOException
writeBigInteger
protected void writeBigInteger(BigInteger d)
throws IOException
- Specified by:
writeBigInteger
in class AbstractPacker
- Throws:
IOException
writeFloat
protected void writeFloat(float d)
throws IOException
- Specified by:
writeFloat
in class AbstractPacker
- Throws:
IOException
writeDouble
protected void writeDouble(double d)
throws IOException
- Specified by:
writeDouble
in class AbstractPacker
- Throws:
IOException
writeBoolean
protected void writeBoolean(boolean d)
throws IOException
- Specified by:
writeBoolean
in class AbstractPacker
- Throws:
IOException
writeByteArray
protected void writeByteArray(byte[] b,
int off,
int len)
throws IOException
- Specified by:
writeByteArray
in class AbstractPacker
- Throws:
IOException
writeByteBuffer
protected void writeByteBuffer(ByteBuffer bb)
throws IOException
- Specified by:
writeByteBuffer
in class AbstractPacker
- Throws:
IOException
writeString
protected 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
reset
public void reset()
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.