tigase.io
Class SocketIO
java.lang.Object
tigase.io.SocketIO
- All Implemented Interfaces:
- IOInterface
public class SocketIO
- extends java.lang.Object
- implements IOInterface
Describe class SocketIO here.
Created: Sat May 14 07:18:30 2005
- Version:
- $Rev: 1364 $
- Author:
- Artur Hefczyc
|
Constructor Summary |
SocketIO(java.nio.channels.SocketChannel sock)
Creates a new SocketIO instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketIO
public SocketIO(java.nio.channels.SocketChannel sock)
throws java.io.IOException
- Creates a new
SocketIO instance.
- Throws:
java.io.IOException
getSocketChannel
public java.nio.channels.SocketChannel getSocketChannel()
- Specified by:
getSocketChannel in interface IOInterface
stop
public void stop()
throws java.io.IOException
- Specified by:
stop in interface IOInterface
- Throws:
java.io.IOException
isConnected
public boolean isConnected()
- Specified by:
isConnected in interface IOInterface
write
public int write(java.nio.ByteBuffer buff)
throws java.io.IOException
- Specified by:
write in interface IOInterface
- Throws:
java.io.IOException
read
public java.nio.ByteBuffer read(java.nio.ByteBuffer buff)
throws java.io.IOException
- Specified by:
read in interface IOInterface
- Throws:
java.io.IOException
bytesRead
public int bytesRead()
- Specified by:
bytesRead in interface IOInterface
getInputPacketSize
public int getInputPacketSize()
throws java.io.IOException
- Specified by:
getInputPacketSize in interface IOInterface
- Throws:
java.io.IOException
waitingToSend
public boolean waitingToSend()
- Specified by:
waitingToSend in interface IOInterface
Copyright © 2009 Tigase. All Rights Reserved.