Foundation.NSFileHandle Members

The members of Foundation.NSFileHandle are listed below.

See Also: Inherited members from Foundation.NSObject

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
static
ConnectionAcceptedNotificationNSString. Notification constant for ConnectionAccepted
[read-only]
static
DataAvailableNotificationNSString. Notification constant for DataAvailable
[read-only]
FileDescriptorint. The file descriptor of this NSFileHandle.
[read-only]
static
OperationExceptionNSString. Represents the value associated with the constant NSFileHandleOperationException
[read-only]
static
ReadCompletionNotificationNSString. Notification constant for ReadCompletion
[read-only]
static
ReadToEndOfFileCompletionNotificationNSString. Notification constant for ReadToEndOfFileCompletion

Public Methods

AcceptConnectionInBackground()
Accepts a socket connection (for stream-type sockets only) in the background.
AcceptConnectionInBackground(NSString[])
Documentation for this section has not yet been entered.
AvailableData() : NSData
Documentation for this section has not yet been entered.
CloseFile()
Signals end of file on comm channels that permit writing and disallows further access to the represented file or comm channel.
EncodeTo(NSCoder)
Encodes the state of the object on the provided encoder
static
FromNullDevice() : NSFileHandle
Documentation for this section has not yet been entered.
static
FromStandardError() : NSFileHandle
Documentation for this section has not yet been entered.
static
FromStandardInput() : NSFileHandle
Documentation for this section has not yet been entered.
static
FromStandardOutput() : NSFileHandle
Documentation for this section has not yet been entered.
OffsetInFile() : ulong
The position of the file pointer within the file represented by this NSFileHandle.
static
OpenRead(string) : NSFileHandle
Static factory method to create an NSFileHandle for reading the file at the specified path.
static
OpenReadUrl(NSUrl, out NSError) : NSFileHandle
Static factory method to create an NSFileHandle for reading the specified URL. Check error for failure.
static
OpenUpdate(string) : NSFileHandle
Static factory method to create an NSFileHandle for updating the file at the specified path.
static
OpenUpdateUrl(NSUrl, out NSError) : NSFileHandle
Static factory method to create an NSFileHandle for updating the file at the specified URL. Check error for failure.
static
OpenWrite(string) : NSFileHandle
Static factory method to create an NSFileHandle for writing a file at the specified path.
static
OpenWriteUrl(NSUrl, out NSError) : NSFileHandle
Static factory method to create an NSFileHandle for writing a file at the specified URL. Check error for failure.
ReadDataOfLength(nuint) : NSData
Reads a block of data of the specified length from the file represented by this NSFileHandle.
ReadDataToEndOfFile() : NSData
Synchronously reads the available data up to EOF or maximum number of bytes.
ReadInBackground()
Documentation for this section has not yet been entered.
ReadInBackground(NSString[])
Documentation for this section has not yet been entered.
ReadToEndOfFileInBackground()
Documentation for this section has not yet been entered.
ReadToEndOfFileInBackground(NSString[])
Documentation for this section has not yet been entered.
SeekToEndOfFile() : ulong
Puts the file pointer at the EOF of the file represented by this NSFileHandle. Returns the new file offset.
SeekToFileOffset(ulong)
Moves the file pointer to the specified offset.
SetReadabilityHandler(Action<NSFileHandle>)
Documentation for this section has not yet been entered.
SetWriteabilityHandle(Action<NSFileHandle>)
Documentation for this section has not yet been entered.
SynchronizeFile()
Writes all in-memory data and attributes of the file represented by this NSFileHandle to disk.
TruncateFileAtOffset(ulong)
Truncates the file represented by this NSFileHandle at the specified offset.
WaitForDataInBackground()
Documentation for this section has not yet been entered.
WaitForDataInBackground(NSString[])
Documentation for this section has not yet been entered.
WriteData(NSData)
Writes the specified data to the file represented by this NSFileHandle.