|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.python.core.io.IOBase
org.python.core.io.RawIOBase
org.python.core.io.SocketIOBase<T>
public abstract class SocketIOBase<T extends Channel>
Base raw I/O implementation for sockets.
Field Summary |
---|
Fields inherited from class org.python.core.io.IOBase |
---|
DEFAULT_BUFFER_SIZE |
Constructor Summary | |
---|---|
SocketIOBase(T socketChannel,
String mode)
Construct a SocketIOBase for the given socket Channel |
Method Summary | |
---|---|
void |
close()
Flushes and closes the IO object. |
T |
getChannel()
Return the underlying Java nio Channel. |
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, read, readall, readinto, readinto, write, write |
Methods inherited from class org.python.core.io.IOBase |
---|
asInputStream, asOutputStream, checkClosed, checkReadable, checkWritable, 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 |
---|
public SocketIOBase(T socketChannel, String mode)
socketChannel
- a Channel to wrapmode
- a raw io socket mode StringMethod Detail |
---|
public void close()
IOBase
close
in class IOBase
public T getChannel()
RawIOBase
getChannel
in class RawIOBase
public boolean readable()
IOBase
readable
in class IOBase
public boolean writable()
IOBase
writable
in class IOBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |