Instance Method インスタンスメソッド

initWithURL:

Initializes and returns an NSInputStream object that reads data from the file at a given URL. NSInputStreamオブジェクトを初期化して返します、それは与えられたURLでファイルからデータを読み出します。

Declaration 宣言

- (instancetype)initWithURL:(NSURL *)url;

Parameters パラメータ

url

The URL to the file. ファイルに対するURL。

Return Value 戻り値

An initialized NSInputStream object that reads data from the file at url. 初期化されたNSInputStreamオブジェクト、それはurlでファイルからデータを読み出します。

Discussion 議論

The stream must be opened before it can be used. ストリームは、それが使われる前に開かれなければなりません。

See Also 参照

Creating Streams ストリームを作成する