org.python.core.io
Class SocketIOBase

java.lang.Object
  extended by org.python.core.io.IOBase
      extended by org.python.core.io.RawIOBase
          extended by 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

Field Summary
 
Fields inherited from class org.python.core.io.IOBase
DEFAULT_BUFFER_SIZE
 
Constructor Summary
SocketIOBase(String mode)
          Construct a SocketIOBase.
 
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.RawIOBase
fileno, getChannel, read, readall, readinto, readinto, write, write
 
Methods inherited from class org.python.core.io.IOBase
asInputStream, asOutputStream, checkClosed, checkReadable, checkWritable, close, closed, flush, isatty, seek, seek, tell, truncate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketIOBase

public SocketIOBase(String mode)
Construct a SocketIOBase.

Parameters:
mode - a raw io socket mode String
Method Detail

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