classes/phing/system/io/InputStreamReader.php
\InputStreamReader
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.
- Extends from
- \Reader
- author
- Hans Lellelid
- author
- Yannick Lecaillez
- package
- phing.system.io
- version
- $Revision: 552 $
Properties
Methods

__construct(
$inStream
)
:
Construct a new InputStreamReader.
| Name | Type | Description |
|---|---|---|
| $inStream |

getResource(
)
:
stringReturns string representation of attached stream.
| Type | Description |
|---|---|
| string |

mark(
)
:
Marks the current position in this input stream.
- throws
- - if the underlying stream doesn't support this method.

markSupported(
)
:
booleanWhether the attached stream supports mark/reset.
| Type | Description |
|---|---|
| boolean |

read(
int $len
=
null
)
:
stringRead data from file.
| Name | Type | Description |
|---|---|---|
| $len | int | Num chars to read. |
| Type | Description |
|---|---|
| string |

readInto(
$rBuffer
)
:
TRUEReads a entire file and stores the data in the variable
passed by reference.
| Name | Type | Description |
|---|---|---|
| $rBuffer |
| Type | Description |
|---|---|
| TRUE |
- author
- Charlie Killian, charlie@tizac.com
- deprecated
- Use read() or BufferedReader instead.

reset(
)
:
Repositions this stream to the position at the time the mark method was last called on this input stream.
- throws
- - if the underlying stream doesn't support this method.