public final class ByteBufferWriteBuffer.ByteBufferOutput extends AbstractWriteBuffer.AbstractBufferOutput
m_ofWriteMAX_PACKED_INT_SIZE, MAX_PACKED_LONG_SIZE| Constructor and Description |
|---|
ByteBufferOutput(int of)
Construct a ByteBufferOutput on top of an NIO ByteBuffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeChar(int ch)
Writes a char value, comprised of the 16 low-order bits of the argument ch; the 16 high-order bits of ch are ignored.
|
void |
writeDouble(double dfl)
Writes a double value.
|
void |
writeFloat(float fl)
Writes a float value.
|
void |
writeInt(int n)
Writes an int value.
|
void |
writeLong(long l)
Writes a long value.
|
void |
writeShort(int n)
Writes a short value, comprised of the 16 low-order bits of the argument n; the 16 high-order bits of n are ignored.
|
calcUTF, close, flush, formatUTF, formatUTF, getBuffer, getCharBuf, getOffset, setOffset, write, write, write, writeBoolean, writeBuffer, writeBuffer, writeByte, writeBytes, writeChars, writePackedInt, writePackedLong, writeSafeUTF, writeStream, writeStream, writeUTF, writeUTFpublic ByteBufferOutput(int of)
of - the offset at which to begin writing
public void writeShort(int n)
throws IOException
writeShort in interface WriteBuffer.BufferOutputwriteShort in interface DataOutputwriteShort in class AbstractWriteBuffer.AbstractBufferOutputn - the short to write (passed as an integer)IOException - if an I/O error occurs
public void writeChar(int ch)
throws IOException
writeChar in interface WriteBuffer.BufferOutputwriteChar in interface DataOutputwriteChar in class AbstractWriteBuffer.AbstractBufferOutputch - the char to write (passed as an integer)IOException - if an I/O error occurs
public void writeInt(int n)
throws IOException
writeInt in interface WriteBuffer.BufferOutputwriteInt in interface DataOutputwriteInt in class AbstractWriteBuffer.AbstractBufferOutputn - the int to writeIOException - if an I/O error occurs
public void writeLong(long l)
throws IOException
writeLong in interface WriteBuffer.BufferOutputwriteLong in interface DataOutputwriteLong in class AbstractWriteBuffer.AbstractBufferOutputl - the long to writeIOException - if an I/O error occurs
public void writeFloat(float fl)
throws IOException
writeFloat in interface WriteBuffer.BufferOutputwriteFloat in interface DataOutputwriteFloat in class AbstractWriteBuffer.AbstractBufferOutputfl - the float to writeIOException - if an I/O error occurs
public void writeDouble(double dfl)
throws IOException
writeDouble in interface WriteBuffer.BufferOutputwriteDouble in interface DataOutputwriteDouble in class AbstractWriteBuffer.AbstractBufferOutputdfl - the double to writeIOException - if an I/O error occurs