Writer class for OutputStream objects.
Unlike the Java counterpart, this class does not (yet) handle character set transformations. This will be an important function of this class with move to supporting PHP6.
package |
phing.system.io |
---|
__construct(\InputStream $inStream)
close()
throws |
if there is an error closing stream |
---|
skip(int $n)
int
read(int $len = null)
If length is specified, then only that number of chars is read, otherwise stream is read until EOF.
int
mark()
A subsequent call to reset() will move stream position back to last marker (if supported).
markSupported() : boolean
boolean
reset()
eof() : boolean
boolean
readInto($rBuffer) : TRUE
author |
Charlie Killian, charlie@tizac.com |
---|---|
deprecated |
Use read() or BufferedReader instead. |
TRUE
on success. Err object on failure.
getResource() : string
This is critical for, e.g., ExpatParser's ability to know the filename that is throwing an ExpatParserException, etc.
string
ready() : boolean
boolean