SetaPDF_Core_Writer_TempStream A writer class for temporary streams
File: /SetaPDF v2/Core/Writer/TempStream.php
The file stream resource
- $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.
The deconstructor closes the file handle.
Flushes the buffer to the stream and resets the buffer.
Set the stream handle.
- $handle : resource
Method which should/will be called when the document objects cleanUp() method is called.
Copies an existing stream into the target stream.
- $source : resource|SetaPDF_Core_Writer_Stream
Finish methods flushes the buffer to the stream.
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".
Returns the current position.
Get the current status of the writer object.
Method which should/will be called when the writing process starts.
Write content to the stream or buffer.
- $s : string