Public Member Functions | |
__construct (InputStream $in) | |
close () | |
| |
isEof () | |
markSupported () | |
mark () | |
| |
reset () | |
| |
available () | |
setRunAheadBytes ($runAheadBytes) | |
| |
read ($count) | |
reads a maximum of $length bytes | |
Static Public Member Functions | |
static | create (InputStream $in) |
| |
Private Attributes | |
$runAheadBytes = 0 | |
$in = null | |
$closed = false | |
$buffer = null | |
$bufferLength = 0 | |
$position = 0 | |
$markPosition = null |
Definition at line 16 of file BufferedInputStream.class.php.
BufferedInputStream::__construct | ( | InputStream $ | in | ) |
Definition at line 29 of file BufferedInputStream.class.php.
static BufferedInputStream::create | ( | InputStream $ | in | ) | [static] |
BufferedInputStream::close | ( | ) |
Reimplemented from InputStream.
Definition at line 45 of file BufferedInputStream.class.php.
BufferedInputStream::isEof | ( | ) |
BufferedInputStream::markSupported | ( | ) |
BufferedInputStream::mark | ( | ) |
Reimplemented from InputStream.
Definition at line 65 of file BufferedInputStream.class.php.
BufferedInputStream::reset | ( | ) |
Reimplemented from InputStream.
Definition at line 75 of file BufferedInputStream.class.php.
BufferedInputStream::available | ( | ) |
Reimplemented from InputStream.
Definition at line 82 of file BufferedInputStream.class.php.
Referenced by read().
BufferedInputStream::setRunAheadBytes | ( | $ | runAheadBytes | ) |
Definition at line 93 of file BufferedInputStream.class.php.
References $runAheadBytes.
BufferedInputStream::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 BufferedInputStream.class.php.
References available().
BufferedInputStream::$runAheadBytes = 0 [private] |
BufferedInputStream::$in = null [private] |
Definition at line 20 of file BufferedInputStream.class.php.
BufferedInputStream::$closed = false [private] |
Definition at line 21 of file BufferedInputStream.class.php.
BufferedInputStream::$buffer = null [private] |
Definition at line 23 of file BufferedInputStream.class.php.
BufferedInputStream::$bufferLength = 0 [private] |
Definition at line 24 of file BufferedInputStream.class.php.
BufferedInputStream::$position = 0 [private] |
Definition at line 26 of file BufferedInputStream.class.php.
BufferedInputStream::$markPosition = null [private] |
Definition at line 27 of file BufferedInputStream.class.php.