# system/io/ConsoleReader.php

Convenience class for reading console input.

Author
  Hans Lellelid
Author
  Matthew Hershberger
Package
  phing.system.io
Version
  $Revision: 552 $

## \ConsoleReader
jump to top

Package: phing\system\io

Convenience class for reading console input.

Parent(s)
  \Reader
Author
  Hans Lellelid
Author
  Matthew Hershberger
Version
  $Revision: 552 $

### Methods

`close( ) : void`

`eof( ) : boolean`

Whether eof has been reached with stream.

Returns

Type | Description
--- | ---
boolean |

`getResource( ) : string`

Returns path to file we are reading.

Returns

Type | Description
--- | ---
string |

`mark( ) : void`

`markSupported( ) : void`

`open( ) : void`

`read( int $len = null ) : string`

Parameters

Name | Type | Description
--- | --- | ---
$len | int | Num chars to read.

Returns

Type | Description
--- | ---
string | chars read or -1 if eof.

`readLine( ) : void`

`ready( ) : void`

`reset( ) : void`

`skip( ) : void`

Documentation was generated by DocBlox 0.17.1.