PHP Интерфейс Webmozart\Console\Api\IO\InputStream

С версии: 1.0
Автор: Bernhard Schussek ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
close ( ) Closes the stream.
isClosed ( ) : boolean Returns whether the stream is closed.
read ( integer $length ) : string Reads the given amount of characters from the stream.
readLine ( integer $length = null ) : string Reads a line from the stream.

Описание методов

close() публичный Метод

Closes the stream.
public close ( )

isClosed() публичный Метод

Returns whether the stream is closed.
public isClosed ( ) : boolean
Результат boolean Returns `true` if the stream is closed.

read() публичный Метод

Reads the given amount of characters from the stream.
public read ( integer $length ) : string
$length integer The number of characters to read.
Результат string The characters read from the stream.

readLine() публичный Метод

Reads a line from the stream.
public readLine ( integer $length = null ) : string
$length integer The maximum number of characters to read. If `null`, all characters up to the first newline are returned.
Результат string The characters read from the stream.