PHP Interface Webmozart\Console\Api\IO\InputStream

Since: 1.0
Author: Bernhard Schussek ([email protected])
Afficher le fichier Open project: webmozart/console

Méthodes publiques

Méthode Description
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.

Method Details

close() public méthode

Closes the stream.
public close ( )

isClosed() public méthode

Returns whether the stream is closed.
public isClosed ( ) : boolean
Résultat boolean Returns `true` if the stream is closed.

read() public méthode

Reads the given amount of characters from the stream.
public read ( integer $length ) : string
$length integer The number of characters to read.
Résultat string The characters read from the stream.

readLine() public méthode

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.
Résultat string The characters read from the stream.