Convenience class for reading console input.
author |
Hans Lellelid hans@xmpl.org |
---|---|
author |
Matthew Hershberger matthewh@lightsp.com |
version |
$Id$ |
package |
phing.system.io |
readLine()
read(int $len = null)
If length is specified, then only that number of chars is read, otherwise stream is read until EOF.
int
close()
throws |
if there is an error closing stream |
---|
open()
eof() : boolean
boolean
getResource() : string
This is critical for, e.g., ExpatParser's ability to know the filename that is throwing an ExpatParserException, etc.
string
skip(int $n)
int
reset()
mark()
A subsequent call to reset() will move stream position back to last marker (if supported).
markSupported() : boolean
boolean
ready() : boolean
boolean