PHP 인터페이스 Webmozart\Console\Api\IO\InputStream

부터: 1.0
저자: Bernhard Schussek ([email protected])
파일 보기 프로젝트 열기: webmozart/console

공개 메소드들

메소드 설명
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.