Instance Method

readDataToEndOfFile

Synchronously reads the available data up to the end of file or maximum number of bytes.

Declaration

- (NSData *)readDataToEndOfFile;

Return Value

The data available through the receiver up to maximum size that can be represented by an NSData object or, if a communications channel, until an end-of-file indicator is returned.

Discussion

This method invokes readDataOfLength: as part of its implementation.

See Also

Reading from a File Handle

availableData

The data currently available in the receiver.

- readDataOfLength:

Synchronously reads data up to the specified number of bytes.