![]() |
TYPO3
7.6
|
Public Member Functions | |
| __construct ($path, $writable=false) | |
| getPath () | |
| read ($length) | |
| setReadPointer ($byteOffset) | |
Public Member Functions inherited from Swift_ByteStream_AbstractFilterableInputStream | |
| addFilter (Swift_StreamFilter $filter, $key) | |
| removeFilter ($key) | |
| write ($bytes) | |
| commit () | |
| bind (Swift_InputByteStream $is) | |
| unbind (Swift_InputByteStream $is) | |
| flushBuffers () | |
Protected Member Functions | |
| _commit ($bytes) | |
| _flush () | |
Protected Member Functions inherited from Swift_ByteStream_AbstractFilterableInputStream | |
| _commit ($bytes) | |
| _flush () | |
Private Member Functions | |
| _getReadHandle () | |
| _getWriteHandle () | |
| _resetReadHandle () | |
| _getReadStreamSeekableStatus () | |
| _seekReadStreamToPosition ($offset) | |
| _copyReadStream () | |
Private Attributes | |
| $_offset = 0 | |
| $_path | |
| $_mode | |
| $_reader | |
| $_writer | |
| $_quotes = false | |
| $_seekable = null | |
Additional Inherited Members | |
Protected Attributes inherited from Swift_ByteStream_AbstractFilterableInputStream | |
| $_sequence = 0 | |
Allows reading and writing of bytes to and from a file.
Definition at line 16 of file FileByteStream.php.
| __construct | ( | $path, | |
$writable = false |
|||
| ) |
Create a new FileByteStream for $path.
| string | $path | |
| bool | $writable | if true |
Definition at line 45 of file FileByteStream.php.
|
protected |
Just write the bytes to the file
Definition at line 127 of file FileByteStream.php.
References _getWriteHandle(), and _resetReadHandle().
|
private |
Copy a readOnly Stream to ensure seekability
Definition at line 206 of file FileByteStream.php.
References elseif.
Referenced by _seekReadStreamToPosition().
|
protected |
Not used
Definition at line 134 of file FileByteStream.php.
|
private |
Get the resource for reading
Definition at line 139 of file FileByteStream.php.
References $_reader, _getReadStreamSeekableStatus(), and _seekReadStreamToPosition().
Referenced by read().
|
private |
Check if ReadOnly Stream is seekable
Definition at line 180 of file FileByteStream.php.
Referenced by _getReadHandle(), and _seekReadStreamToPosition().
|
private |
Get the resource for writing
Definition at line 157 of file FileByteStream.php.
References $_writer.
Referenced by _commit().
|
private |
Force a reload of the resource for reading
Definition at line 171 of file FileByteStream.php.
|
private |
Streams in a readOnly stream ensuring copy if needed
Definition at line 187 of file FileByteStream.php.
References _copyReadStream(), and _getReadStreamSeekableStatus().
Referenced by _getReadHandle(), and setReadPointer().
| getPath | ( | ) |
Get the complete path to the file.
Implements Swift_FileStream.
Definition at line 63 of file FileByteStream.php.
References $_path.
Referenced by Swift_ByteStream_TemporaryFileByteStream\__destruct(), and Swift_ByteStream_TemporaryFileByteStream\getContent().
| read | ( | $length | ) |
Reads $length bytes from the stream into a string and moves the pointer through the stream by $length.
If less bytes exist than are requested the remaining bytes are given instead. If no bytes are remaining at all, boolean false is returned.
| int | $length |
| Swift_IoException |
Implements Swift_OutputByteStream.
Definition at line 82 of file FileByteStream.php.
References _getReadHandle(), and _resetReadHandle().
| setReadPointer | ( | $byteOffset | ) |
Move the internal read pointer to $byteOffset in the stream.
| int | $byteOffset |
Implements Swift_OutputByteStream.
Definition at line 118 of file FileByteStream.php.
References _seekReadStreamToPosition().
|
private |
The mode this file is opened in for writing
Definition at line 25 of file FileByteStream.php.
|
private |
The internal pointer offset
Definition at line 19 of file FileByteStream.php.
|
private |
|
private |
If magic_quotes_runtime is on, this will be true
Definition at line 34 of file FileByteStream.php.
|
private |
A lazy-loaded resource handle for reading the file
Definition at line 28 of file FileByteStream.php.
Referenced by _getReadHandle().
|
private |
If stream is seekable true/false, or null if not known
Definition at line 37 of file FileByteStream.php.
|
private |
A lazy-loaded resource handle for writing the file
Definition at line 31 of file FileByteStream.php.
Referenced by _getWriteHandle().
1.8.3