Android Guides | Samples

Java.IO.FileDescriptor Class

Wraps a Unix file descriptor.

See Also: FileDescriptor

Syntax

[Android.Runtime.Register("java/io/FileDescriptor", DoNotGenerateAcw=true)]
public sealed class FileDescriptor : Object

Remarks

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.

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.IO.FileDescriptor are listed below.

See Also: Object

Public Constructors

Constructs a new invalid FileDescriptor.

Public Properties

[read-only]
static
ErrFileDescriptor. Corresponds to stderr.
[read-only]
static
InFileDescriptor. Corresponds to stdin.
[read-only]
static
OutFileDescriptor. Corresponds to stdout.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Sync()
Ensures that data which is buffered within the underlying implementation is written out to the appropriate device before returning.
Valid() : Boolean
Tests whether this FileDescriptor is valid.