Convenience class for reading console input.
author | Hans Lellelid |
---|---|
author | Matthew Hershberger |
version | $Id$ |
package | phing.system.io |
eof() : boolean
boolean
getResource() : string
that is being read from. This is critical for, e.g., ExpatParser's ability to know the filename that is throwing an ExpatParserException, etc.
string
mark()
A subsequent call to reset() will move stream position back to last marker (if supported).
inherited_from | \Reader::mark() |
---|
markSupported() : boolean
inherited_from | \Reader::markSupported() |
---|
boolean
open()
read(int $len) : string
If length is specified, then only that number of chars is read, otherwise stream is read until EOF.
int
Num chars to read.
string
chars read or -1 if eof.readLine()
ready() : boolean
inherited_from | \Reader::ready() |
---|
boolean
reset()
inherited_from | \Reader::reset() |
---|
skip(int $n)
inherited_from | \Reader::skip() |
---|
int