Lines Matching refs:writer

235      * Sends the current file to the Writer $writer

239 function sendData(&$writer, $bufferSize = 0)
241 if (PEAR::isError($writer)) {
242 return $writer;
250 $error = $writer->writeFile($filename);
259 $error = $writer->writeData($data);
268 * Sends the whole reader to $writer and close the reader
270 * @param File_Archive_Writer $writer Where to write the files of the reader
271 * @param bool $autoClose If true, close $writer at the end of the function.
273 * @param int $bufferSize Size of the chunks that will be sent to the writer
276 function extract(&$writer, $autoClose = true, $bufferSize = 0)
278 if (PEAR::isError($writer)) {
280 return $writer;
284 if ($writer->newFileNeedsMIME()) {
289 $error = $writer->newFile(
297 $error = $this->sendData($writer, $bufferSize);
304 $writer->close();
315 * @param File_Archive_Writer $writer Where to write the file
316 * @param bool $autoClose If true, close $writer at the end of the function
318 * @param int $bufferSize Size of the chunks that will be sent to the writer
321 function extractFile($filename, &$writer,
324 if (PEAR::isError($writer)) {
325 return $writer;
329 $result = $this->sendData($writer, $bufferSize);
339 $error = $writer->close();
348 * Return a writer that allows appending files to the archive
350 * used until the returned writer is closed.
352 * @return a writer that will allow to append files to an existing archive
362 * Return a writer that has the same properties as the one returned by
366 * be used until the returned writer is closed
377 * Returns a writer that removes the current file
391 $writer = $this->makeWriterRemove();
392 if (PEAR::isError($writer)) {
393 return $writer;
395 $writer->close();
399 * Return a writer that has the same properties as the one returned by makeWriter, but after
400 * having removed a block of data from the current file. The writer will append data to the current file