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 |
|---|---|
| author | Hans Lellelid |
| author | Yannick Lecaillez |
| version | $Id$ |
__construct(\InputStream $inStream)
eof() : boolean
booleangetResource() : 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.
stringmark()
A subsequent call to reset() will move stream position back to last marker (if supported).
\IOException |
- if the underlying stream doesn't support this method. |
|---|
markSupported() : boolean
booleanread(int $len) : string
If length is specified, then only that number of chars is read, otherwise stream is read until EOF.
intNum chars to read.
stringchars read or -1 if eof.readInto($rBuffer) : TRUE
| author | Charlie Killian, charlie@tizac.com |
|---|---|
| deprecated | Use read() or BufferedReader instead. |
TRUEon success. Err object on failure.ready() : boolean
| inherited_from | \Reader::ready() |
|---|
booleanreset()
\IOException |
- if the underlying stream doesn't support this method. |
|---|
skip(int $n)
int
$inStream : \InputStream