|
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 writing| Method Detail |
|---|
public void writeShort(int n)
throws IOException
writeShort 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 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 DataOutputwriteInt in class AbstractWriteBuffer.AbstractBufferOutputn - the int to write
IOException - if an I/O error occurs
public void writeLong(long l)
throws IOException
writeLong in interface DataOutputwriteLong in class AbstractWriteBuffer.AbstractBufferOutputl - the long to write
IOException - if an I/O error occurs
public void writeFloat(float fl)
throws IOException
writeFloat in interface DataOutputwriteFloat in class AbstractWriteBuffer.AbstractBufferOutputfl - the float to write
IOException - if an I/O error occurs
public void writeDouble(double dfl)
throws IOException
writeDouble in interface DataOutputwriteDouble in class AbstractWriteBuffer.AbstractBufferOutputdfl - 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 | |||||||