public class NIOJBaseObjectWriter extends AbstractJBaseObjectWriter
jBase object writer using the new Java IO.
Modifier and Type | Field and Description |
---|---|
static long |
WRITE_TIMEOUT
The temporary selectors write timeout.
|
Constructor and Description |
---|
NIOJBaseObjectWriter(java.nio.channels.SocketChannel socketChannel) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkBuffer(int newDataLength) |
void |
close() |
protected void |
flush() |
protected void |
outByte(byte[] b) |
protected void |
outByte(int b) |
protected void |
outInt(int i) |
protected void |
outUTF(java.lang.String s) |
void |
setSocketChannel(java.nio.channels.SocketChannel socketChannel) |
writeInt, writeJBaseSerializableObject, writeObject, writeObject, writeObject, writeObject, writeRootObject
public static final long WRITE_TIMEOUT
public NIOJBaseObjectWriter(java.nio.channels.SocketChannel socketChannel)
public void close() throws java.io.IOException
java.io.IOException
protected void flush() throws java.io.IOException
flush
in class AbstractJBaseObjectWriter
java.io.IOException
protected void outByte(byte[] b)
outByte
in class AbstractJBaseObjectWriter
protected void outByte(int b)
outByte
in class AbstractJBaseObjectWriter
protected void outInt(int i)
outInt
in class AbstractJBaseObjectWriter
protected void outUTF(java.lang.String s)
outUTF
in class AbstractJBaseObjectWriter
protected void checkBuffer(int newDataLength)
public void setSocketChannel(java.nio.channels.SocketChannel socketChannel)