org.python.core.io
Class ServerSocketIO
java.lang.Object
org.python.core.io.IOBase
org.python.core.io.RawIOBase
org.python.core.io.SocketIOBase<ServerSocketChannel>
org.python.core.io.ServerSocketIO
public class ServerSocketIO
- extends SocketIOBase<ServerSocketChannel>
Raw I/O implementation for server sockets.
- Author:
- Philip Jenvey
| Methods inherited from class org.python.core.io.IOBase |
asInputStream, asOutputStream, checkClosed, checkReadable, checkWritable, closed, flush, isatty, seek, seek, tell, truncate |
ServerSocketIO
public ServerSocketIO(ServerSocketChannel socketChannel,
String mode)
- Construct a ServerSocketIO for the given ServerSocketChannel.
- Parameters:
socketChannel - a ServerSocketChannel to wrapmode - a raw io socket mode String
readinto
public int readinto(ByteBuffer buf)
- Description copied from class:
RawIOBase
- Read up to buf.remaining() bytes into buf.
Returns number of bytes read (0 for EOF).
- Overrides:
readinto in class RawIOBase
- Parameters:
buf - a ByteBuffer to read bytes into
- Returns:
- the amount of data read as an int
write
public int write(ByteBuffer buf)
- Description copied from class:
RawIOBase
- Write the given ByteBuffer to the IO stream.
Returns the number of bytes written, which may be less than
buf.remaining().
- Overrides:
write in class RawIOBase
- Parameters:
buf - a ByteBuffer value
- Returns:
- the number of bytes written as an int
Jython homepage