Public Member Functions | |
__construct ($string) | |
isEof () | |
mark () | |
| |
markSupported () | |
reset () | |
| |
close () | |
| |
read ($count) | |
reads a maximum of $length bytes | |
Static Public Member Functions | |
static | create ($string) |
| |
Private Attributes | |
$string = null | |
$length = null | |
$position = 0 | |
$mark = 0 |
Definition at line 16 of file StringInputStream.class.php.
StringInputStream::__construct | ( | $ | string | ) |
static StringInputStream::create | ( | $ | string | ) | [static] |
Definition at line 35 of file StringInputStream.class.php.
References $string.
Referenced by OpenIdCredentials::__construct().
StringInputStream::isEof | ( | ) |
Reimplemented from InputStream.
Definition at line 40 of file StringInputStream.class.php.
Referenced by read().
StringInputStream::mark | ( | ) |
Reimplemented from InputStream.
Definition at line 48 of file StringInputStream.class.php.
Referenced by reset().
StringInputStream::markSupported | ( | ) |
StringInputStream::reset | ( | ) |
Reimplemented from InputStream.
Definition at line 63 of file StringInputStream.class.php.
References mark().
StringInputStream::close | ( | ) |
Reimplemented from InputStream.
Definition at line 73 of file StringInputStream.class.php.
StringInputStream::read | ( | $ | length | ) |
reads a maximum of $length bytes
returns null on eof or if length == 0. Otherwise MUST return at least one byte or throw IOException
NOTE: if length is too large to read all data at once and eof has not been reached, it MUST BLOCK until all data is read or eof is reached or throw IOException.
It is abnormal state. Maybe you should use some kind of non-blocking channels instead?
Reimplemented from InputStream.
Definition at line 80 of file StringInputStream.class.php.
References isEof().
StringInputStream::$string = null [private] |
Definition at line 18 of file StringInputStream.class.php.
Referenced by __construct(), and create().
StringInputStream::$length = null [private] |
Definition at line 19 of file StringInputStream.class.php.
StringInputStream::$position = 0 [private] |
Definition at line 21 of file StringInputStream.class.php.
StringInputStream::$mark = 0 [private] |
Definition at line 22 of file StringInputStream.class.php.