org.msgpack.io
Class ByteBufferOutput
java.lang.Object
org.msgpack.io.ByteBufferOutput
- All Implemented Interfaces:
- Closeable, Flushable, Output
public class ByteBufferOutput
- extends Object
- implements Output
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteBufferOutput
public ByteBufferOutput(ByteBuffer buffer)
ByteBufferOutput
public ByteBufferOutput(ByteBuffer buffer,
ByteBufferOutput.ExpandBufferCallback callback)
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Specified by:
write
in interface Output
- Throws:
IOException
write
public void write(ByteBuffer bb)
throws IOException
- Specified by:
write
in interface Output
- Throws:
IOException
writeByte
public void writeByte(byte v)
throws IOException
- Specified by:
writeByte
in interface Output
- Throws:
IOException
writeShort
public void writeShort(short v)
throws IOException
- Specified by:
writeShort
in interface Output
- Throws:
IOException
writeInt
public void writeInt(int v)
throws IOException
- Specified by:
writeInt
in interface Output
- Throws:
IOException
writeLong
public void writeLong(long v)
throws IOException
- Specified by:
writeLong
in interface Output
- Throws:
IOException
writeFloat
public void writeFloat(float v)
throws IOException
- Specified by:
writeFloat
in interface Output
- Throws:
IOException
writeDouble
public void writeDouble(double v)
throws IOException
- Specified by:
writeDouble
in interface Output
- Throws:
IOException
writeByteAndByte
public void writeByteAndByte(byte b,
byte v)
throws IOException
- Specified by:
writeByteAndByte
in interface Output
- Throws:
IOException
writeByteAndShort
public void writeByteAndShort(byte b,
short v)
throws IOException
- Specified by:
writeByteAndShort
in interface Output
- Throws:
IOException
writeByteAndInt
public void writeByteAndInt(byte b,
int v)
throws IOException
- Specified by:
writeByteAndInt
in interface Output
- Throws:
IOException
writeByteAndLong
public void writeByteAndLong(byte b,
long v)
throws IOException
- Specified by:
writeByteAndLong
in interface Output
- Throws:
IOException
writeByteAndFloat
public void writeByteAndFloat(byte b,
float v)
throws IOException
- Specified by:
writeByteAndFloat
in interface Output
- Throws:
IOException
writeByteAndDouble
public void writeByteAndDouble(byte b,
double v)
throws IOException
- Specified by:
writeByteAndDouble
in interface Output
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Throws:
IOException
close
public void close()
- Specified by:
close
in interface Closeable
Copyright © 2011. All Rights Reserved.