|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.io.AbstractWriteBuffer.AbstractBufferOutput
com.tangosol.io.nio.ByteBufferWriteBuffer.ByteBufferOutput
public 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 |
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, getBuffer, getCharBuf, getOffset, setOffset, write, write, write, writeBoolean, writeBuffer, writeBuffer, writeByte, writeBytes, writeChars, writePackedInt, writePackedLong, writeSafeUTF, writeStream, writeStream, writeUTF |
Constructor Detail |
---|
public ByteBufferWriteBuffer.ByteBufferOutput(int of)
of
- the offset at which to begin writingMethod Detail |
---|
public void writeShort(int n) throws IOException
writeShort
in interface DataOutput
writeShort
in class AbstractWriteBuffer.AbstractBufferOutput
n
- the short to write (passed as an integer)
IOException
- if an I/O error occurspublic void writeChar(int ch) throws IOException
writeChar
in interface DataOutput
writeChar
in class AbstractWriteBuffer.AbstractBufferOutput
ch
- the char to write (passed as an integer)
IOException
- if an I/O error occurspublic void writeInt(int n) throws IOException
writeInt
in interface DataOutput
writeInt
in class AbstractWriteBuffer.AbstractBufferOutput
n
- the int to write
IOException
- if an I/O error occurspublic void writeLong(long l) throws IOException
writeLong
in interface DataOutput
writeLong
in class AbstractWriteBuffer.AbstractBufferOutput
l
- the long to write
IOException
- if an I/O error occurspublic void writeFloat(float fl) throws IOException
writeFloat
in interface DataOutput
writeFloat
in class AbstractWriteBuffer.AbstractBufferOutput
fl
- the float to write
IOException
- if an I/O error occurspublic void writeDouble(double dfl) throws IOException
writeDouble
in interface DataOutput
writeDouble
in class AbstractWriteBuffer.AbstractBufferOutput
dfl
- the double to write
IOException
- if an I/O error occurs
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |