Public Member Functions | |
read ($length) | |
reads a maximum of $length bytes | |
isEof () | |
mark () | |
| |
markSupported () | |
reset () | |
skip ($count) | |
available () | |
close () | |
|
Definition at line 16 of file InputStream.class.php.
InputStream::read | ( | $ | length | ) | [abstract] |
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 in BufferedInputStream, FileInputStream, SocketInputStream, and StringInputStream.
Referenced by skip().
InputStream::isEof | ( | ) |
Reimplemented in BufferedInputStream, FileInputStream, SocketInputStream, and StringInputStream.
Definition at line 35 of file InputStream.class.php.
InputStream::mark | ( | ) |
Reimplemented in BufferedInputStream, FileInputStream, and StringInputStream.
Definition at line 43 of file InputStream.class.php.
Referenced by reset().
InputStream::markSupported | ( | ) |
Reimplemented in BufferedInputStream, FileInputStream, and StringInputStream.
Definition at line 50 of file InputStream.class.php.
InputStream::reset | ( | ) |
Reimplemented in BufferedInputStream, FileInputStream, and StringInputStream.
Definition at line 55 of file InputStream.class.php.
References mark().
InputStream::skip | ( | $ | count | ) |
Definition at line 62 of file InputStream.class.php.
References read().
InputStream::available | ( | ) |
InputStream::close | ( | ) |
Reimplemented in BufferedInputStream, FileInputStream, and StringInputStream.
Definition at line 75 of file InputStream.class.php.