| java.lang.Object org.apache.catalina.tribes.io.ObjectReader
ObjectReader | public class ObjectReader (Code) | | The object reader object is an object used in conjunction with
java.nio TCP messages. This object stores the message bytes in a
XByteBuffer until a full package has been received.
This object uses an XByteBuffer which is an extendable object buffer that also allows
for message encoding and decoding.
author: Filip Hanik version: $Revision: 467173 $, $Date: 2006-10-24 01:12:17 +0200 (mar., 24 oct. 2006) $ |
accessed | protected boolean accessed(Code) | | |
lastAccess | protected long lastAccess(Code) | | |
ObjectReader | public ObjectReader(SocketChannel channel)(Code) | | Creates an ObjectReader for a TCP NIO socket channel
Parameters: channel - - the channel to be read. |
ObjectReader | public ObjectReader(Socket socket)(Code) | | Creates an ObjectReader for a TCP socket
Parameters: socket - Socket |
access | public synchronized void access()(Code) | | |
bufferSize | public int bufferSize()(Code) | | |
close | public void close()(Code) | | |
count | public int count()(Code) | | Returns the number of packages that the reader has read
int |
finish | public synchronized void finish()(Code) | | |
getLastAccess | public long getLastAccess()(Code) | | |
hasPackage | public boolean hasPackage()(Code) | | |
isAccessed | public boolean isAccessed()(Code) | | |
isCancelled | public boolean isCancelled()(Code) | | |
setCancelled | public void setCancelled(boolean cancelled)(Code) | | |
setLastAccess | public void setLastAccess(long lastAccess)(Code) | | |
|
|