SetaPDF_Core_Writer_TempStream A writer class for temporary streams
File: /SetaPDF v2/Core/Writer/TempStream.php
Class hierarchy
Implements
- SetaPDF_Core_WriteInterface
- SetaPDF_Core_Writer_CopyStreamInterface
- SetaPDF_Core_Writer_WriterInterface
Summary
Properties
$_handle
protected resource SetaPDF_Core_Writer_Stream::$_handle
The file stream resource
Methods
__construct()
public SetaPDF_Core_Writer_TempStream::__construct (
[ null|int $memoryLimit = null [, int $bufferSize = 10000 ]]
)The constructor.
Parameters
- $memoryLimit : null|int
Limit to use before writing to a temporary file. If null PHPs default (2 MB) is used.
- $bufferSize : int
The buffer size of which needs to be reached until the data is written to the stream.
copy()
WARNING: This method is marked as deprecated!
Use copyStream() instead.
Parameters
- $source : resource|SetaPDF_Core_Writer_Stream
copyStream()
Copies an existing stream into the target stream.
Parameters
- $source : resource|SetaPDF_Core_Writer_Stream
getHandle()
Gets the handle of the stream.
This method is overwritten to ensure that the handle is only accessed when the writer instance has the status "finished".