Public Member Functions | |
__construct ($nameOrFd) | |
__destruct () | |
isEof () | |
mark () | |
| |
markSupported () | |
reset () | |
| |
close () | |
| |
read ($length) | |
reads a maximum of $length bytes | |
Static Public Member Functions | |
static | create ($nameOrFd) |
| |
Private Attributes | |
$fd = null | |
$mark = null |
Definition at line 16 of file FileInputStream.class.php.
FileInputStream::__construct | ( | $ | nameOrFd | ) |
Definition at line 22 of file FileInputStream.class.php.
FileInputStream::__destruct | ( | ) |
Definition at line 39 of file FileInputStream.class.php.
References close().
static FileInputStream::create | ( | $ | nameOrFd | ) | [static] |
FileInputStream::isEof | ( | ) |
FileInputStream::mark | ( | ) |
Reimplemented from InputStream.
Definition at line 64 of file FileInputStream.class.php.
Referenced by reset().
FileInputStream::markSupported | ( | ) |
FileInputStream::reset | ( | ) |
Reimplemented from InputStream.
Definition at line 79 of file FileInputStream.class.php.
References mark().
FileInputStream::close | ( | ) |
Reimplemented from InputStream.
Definition at line 92 of file FileInputStream.class.php.
Referenced by __destruct().
FileInputStream::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 100 of file FileInputStream.class.php.
FileInputStream::$fd = null [private] |
Definition at line 18 of file FileInputStream.class.php.
FileInputStream::$mark = null [private] |
Definition at line 20 of file FileInputStream.class.php.