Public Member Functions | |
write ($buffer) | |
MUST send either whole buffer or nothing at all or throw IOException. | |
flush () | |
| |
close () | |
|
Definition at line 16 of file OutputStream.class.php.
OutputStream::write | ( | $ | buffer | ) | [abstract] |
MUST send either whole buffer or nothing at all or throw IOException.
NOTE: if buffer is too large to send it at once and first chunk of data has been sent successfully, it MUST BLOCK until all data is sent, or throw IOException. In this case it MUST NOT throw IOTimedOutException due to impossibility of detecting what data has been already sent.
It is abnormal state. Maybe you should use some kind of non-blocking channels instead?
Reimplemented in FileOutputStream, and SocketOutputStream.
OutputStream::flush | ( | ) |
OutputStream::close | ( | ) |
Reimplemented in FileOutputStream.
Definition at line 46 of file OutputStream.class.php.