DthingApi
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
java.io.FileDescriptor Class Reference

Public Member Functions

 FileDescriptor ()
 
void sync () throws SyncFailedException
 
boolean valid ()
 
final int getInt ()
 
final void setInt (int fd)
 
String toString ()
 

Static Public Attributes

static final FileDescriptor in = new FileDescriptor(STDIN)
 
static final FileDescriptor out = new FileDescriptor(STDOUT)
 
static final FileDescriptor err = new FileDescriptor(STDERR)
 

Protected Attributes

int handle = -1
 

Detailed Description

Wraps a Unix file descriptor. It's possible to get the file descriptor used by some classes (such as FileInputStream, FileOutputStream, and RandomAccessFile), and then create new streams that point to the same file descriptor.

Constructor & Destructor Documentation

◆ FileDescriptor()

java.io.FileDescriptor.FileDescriptor ( )
inline

Constructs a new invalid FileDescriptor.

Member Function Documentation

◆ getInt()

final int java.io.FileDescriptor.getInt ( )
inline

Returns the int fd. It's highly unlikely you should be calling this. Please discuss your needs with a libcore maintainer before using this method. internal use only

◆ setInt()

final void java.io.FileDescriptor.setInt ( int  fd)
inline

Sets the int fd. It's highly unlikely you should be calling this. Please discuss your needs with a libcore maintainer before using this method. internal use only

◆ sync()

void java.io.FileDescriptor.sync ( ) throws SyncFailedException
inline

Ensures that data which is buffered within the underlying implementation is written out to the appropriate device before returning.

◆ valid()

boolean java.io.FileDescriptor.valid ( )
inline

Tests whether this

is valid.

Member Data Documentation

◆ err

final FileDescriptor java.io.FileDescriptor.err = new FileDescriptor(STDERR)
static

Corresponds to

stderr

.

◆ in

final FileDescriptor java.io.FileDescriptor.in = new FileDescriptor(STDIN)
static

Corresponds to

stdin

.

◆ out

final FileDescriptor java.io.FileDescriptor.out = new FileDescriptor(STDOUT)
static

Corresponds to

stdout

.


The documentation for this class was generated from the following file: