2
abstract class VIRTUALStreamWriter implements STREAMWriterInterface {
3
function Write($data, $flags = 0) {
4
return $this->WriteData($data, $flags);
7
function WriteFile($file, $flags = 0) {
8
$handle = fopen($file, "rb");
10
while (!feof($handle)) {
11
$this->WriteData(fread($handle, STREAM::BUFFER_SIZE));
15
throw new ADEIException(translate("File (%s) is not accessible", $file));
b'\\ No newline at end of file'