|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.io.OutputStream
com.tangosol.io.AbstractWriteBuffer.AbstractBufferOutput
com.tangosol.io.nio.ByteBufferWriteBuffer.ByteBufferOutput
public final class ByteBufferWriteBuffer.ByteBufferOutput
This is a simple implementation of the BufferOutput interface on top of a ByteBuffer.
Field Summary |
---|
Fields inherited from class com.tangosol.io.AbstractWriteBuffer.AbstractBufferOutput |
---|
m_ofWrite |
Fields inherited from interface com.tangosol.io.WriteBuffer.BufferOutput |
---|
MAX_PACKED_INT_SIZE, MAX_PACKED_LONG_SIZE |
Constructor Summary | |
---|---|
ByteBufferWriteBuffer.ByteBufferOutput(int of) Construct a ByteBufferOutput on top of an NIO ByteBuffer. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.tangosol.io.AbstractWriteBuffer.AbstractBufferOutput |
---|
calcUTF, close, flush, formatUTF, formatUTF, getBuffer, getCharBuf, getOffset, setOffset, write, write, write, writeBoolean, writeBuffer, writeBuffer, writeByte, writeBytes, writeChars, writePackedInt, writePackedLong, writeSafeUTF, writeStream, writeStream, writeUTF, writeUTF |
Constructor Detail |
---|
public ByteBufferWriteBuffer.ByteBufferOutput(int of)
of
- the offset at which to begin writingMethod Detail |
---|
public void writeShort(int n) throws java.io.IOException
writeShort
in interface WriteBuffer.BufferOutput
writeShort
in interface java.io.DataOutput
writeShort
in class AbstractWriteBuffer.AbstractBufferOutput
n
- the short to write (passed as an integer)java.io.IOException
- if an I/O error occurspublic void writeChar(int ch) throws java.io.IOException
writeChar
in interface WriteBuffer.BufferOutput
writeChar
in interface java.io.DataOutput
writeChar
in class AbstractWriteBuffer.AbstractBufferOutput
ch
- the char to write (passed as an integer)java.io.IOException
- if an I/O error occurspublic void writeInt(int n) throws java.io.IOException
writeInt
in interface WriteBuffer.BufferOutput
writeInt
in interface java.io.DataOutput
writeInt
in class AbstractWriteBuffer.AbstractBufferOutput
n
- the int to writejava.io.IOException
- if an I/O error occurspublic void writeLong(long l) throws java.io.IOException
writeLong
in interface WriteBuffer.BufferOutput
writeLong
in interface java.io.DataOutput
writeLong
in class AbstractWriteBuffer.AbstractBufferOutput
l
- the long to writejava.io.IOException
- if an I/O error occurspublic void writeFloat(float fl) throws java.io.IOException
writeFloat
in interface WriteBuffer.BufferOutput
writeFloat
in interface java.io.DataOutput
writeFloat
in class AbstractWriteBuffer.AbstractBufferOutput
fl
- the float to writejava.io.IOException
- if an I/O error occurspublic void writeDouble(double dfl) throws java.io.IOException
writeDouble
in interface WriteBuffer.BufferOutput
writeDouble
in interface java.io.DataOutput
writeDouble
in class AbstractWriteBuffer.AbstractBufferOutput
dfl
- the double to writejava.io.IOException
- if an I/O error occurs
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |