org.python.core.io
Class SocketIOBase
java.lang.Object
org.python.core.io.IOBase
org.python.core.io.RawIOBase
org.python.core.io.SocketIOBase
- Direct Known Subclasses:
- DatagramSocketIO, ServerSocketIO, SocketIO
public abstract class SocketIOBase
- extends RawIOBase
Base raw I/O implementation for sockets.
- Author:
- Philip Jenvey
|
Method Summary |
boolean |
readable()
Return whether this file was opened for reading. |
boolean |
writable()
Return whether this file was opened for writing. |
| Methods inherited from class org.python.core.io.IOBase |
asInputStream, asOutputStream, checkClosed, checkReadable, checkWritable, close, closed, flush, isatty, seek, seek, tell, truncate |
SocketIOBase
public SocketIOBase(String mode)
- Construct a SocketIOBase.
- Parameters:
mode - a raw io socket mode String
readable
public boolean readable()
- Description copied from class:
IOBase
- Return whether this file was opened for reading.
- Overrides:
readable in class IOBase
- Returns:
- true if the file was opened for reading
writable
public boolean writable()
- Description copied from class:
IOBase
- Return whether this file was opened for writing.
- Overrides:
writable in class IOBase
- Returns:
- true if the file was opened for writing
Jython homepage