system/io/StringReader.php
Dummy class for reading from string of characters.
- Package
- phing.system.io
\StringReader
Package: phing\system\io
Returns
Parameters
Dummy class for reading from string of characters.
- Parent(s)
- \Reader
- Author
- Hans Lellelid
- Author
- Yannick Lecaillez
- Version
- $Id$
Properties
Methods

close(
)
:
voidClose stream.
Throws
| Exception | Description |
|---|---|
| \IOException | if there is an error closing stream |

getResource(
)
:
stringReturns the filename, url, etc. that is being read from.
This is critical for, e.g., ExpatParser's ability to know the filename that is throwing an ExpatParserException, etc.
| Type | Description |
|---|---|
| string |

mark(
)
:
voidIf supported, places a "marker" (like a bookmark) at current stream position.
A subsequent call to reset() will move stream position back to last marker (if supported).

read(
int $len
=
null
)
:
voidRead data from source.
If length is specified, then only that number of chars is read, otherwise stream is read until EOF.
| Name | Type | Description |
|---|---|---|
| $len | int |