PHP Interface Webmozart\Console\Api\IO\OutputStream

Since: 1.0
Author: Bernhard Schussek ([email protected])
Show file Open project: webmozart/console Interface Usage Examples

Public Methods

Method Description
close ( ) Closes the stream.
flush ( ) Flushes the stream and forces all pending text to be written out.
isClosed ( ) : boolean Returns whether the stream is closed.
supportsAnsi ( ) : boolean Returns whether the stream supports ANSI format codes.
write ( string $string ) Writes a string to the stream.

Method Details

close() public method

Closes the stream.
public close ( )

flush() public method

Flushes the stream and forces all pending text to be written out.
public flush ( )

isClosed() public method

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

supportsAnsi() public method

Returns whether the stream supports ANSI format codes.
public supportsAnsi ( ) : boolean
return boolean Returns `true` if the stream supports ANSI format codes and `false` otherwise.

write() public method

Writes a string to the stream.
public write ( string $string )
$string string The string to write.