Initializer

init(url:)

Initializes and returns an NSInputStream object that reads data from the file at a given URL.

Declaration

init?(url: URL)

Parameters

url

The URL to the file.

Return Value

An initialized NSInputStream object that reads data from the file at url.

Discussion

The stream must be opened before it can be used.

See Also

Creating Streams

init(data: Data)

Initializes and returns an NSInputStream object for reading from a given NSData object.

init?(fileAtPath: String)

Initializes and returns an NSInputStream object that reads data from the file at a given path.