Top Description Constructors Methods
org.python.core.io

public Class FileDescriptors

extends Object
Class Inheritance
Imports
org.python.core.Py, .PyObject

Jython file descriptor management. File descriptor objects in Jython are instances of RawIOBase.
Author
Philip Jenvey

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static RawIOBase

Returns:

the RawIOBase associated with the file descriptor
get
(PyObject
a Jython file descriptor object
fd
)

Return the RawIOBase associated with the specified file descriptor.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FileDescriptorsback to summary
public FileDescriptors()

Method Detail

getback to summary
public static RawIOBase get(PyObject fd)

Return the RawIOBase associated with the specified file descriptor. Raises a Python exception is the file descriptor is invalid

Parameters
fd:PyObject

a Jython file descriptor object

Returns:RawIOBase

the RawIOBase associated with the file descriptor