jremote jbase5.2.1

com.jbase.jremote.io
Class NIOJBaseObjectWriter

java.lang.Object
  extended by com.jbase.jremote.io.AbstractJBaseObjectWriter
      extended by com.jbase.jremote.io.NIOJBaseObjectWriter
All Implemented Interfaces:
JBaseObjectWriter

public class NIOJBaseObjectWriter
extends AbstractJBaseObjectWriter

jBase object writer using the new Java IO.

Author:
aphethean

Field Summary
static long WRITE_TIMEOUT
          The temporary selectors write timeout.
 
Constructor Summary
NIOJBaseObjectWriter(java.nio.channels.SocketChannel socketChannel)
           
 
Method Summary
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)
           
 
Methods inherited from class com.jbase.jremote.io.AbstractJBaseObjectWriter
writeInt, writeJBaseSerializableObject, writeObject, writeObject, writeObject, writeObject, writeRootObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WRITE_TIMEOUT

public static final long WRITE_TIMEOUT
The temporary selectors write timeout. 30 seconds.

See Also:
Constant Field Values
Constructor Detail

NIOJBaseObjectWriter

public NIOJBaseObjectWriter(java.nio.channels.SocketChannel socketChannel)
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

flush

protected void flush()
              throws java.io.IOException
Specified by:
flush in class AbstractJBaseObjectWriter
Throws:
java.io.IOException

outByte

protected void outByte(byte[] b)
Specified by:
outByte in class AbstractJBaseObjectWriter

outByte

protected void outByte(int b)
Specified by:
outByte in class AbstractJBaseObjectWriter

outInt

protected void outInt(int i)
Specified by:
outInt in class AbstractJBaseObjectWriter

outUTF

protected void outUTF(java.lang.String s)
Specified by:
outUTF in class AbstractJBaseObjectWriter

checkBuffer

protected void checkBuffer(int newDataLength)

setSocketChannel

public void setSocketChannel(java.nio.channels.SocketChannel socketChannel)

jremote jbase5.2.1

Copyright © 2010 TEMENOS. All Rights Reserved.