XOOPS RMCommon Utilities
2.1.8.91RC
|
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) | |
bind (Swift_InputByteStream $is) | |
commit () | |
flushBuffers () | |
removeFilter ($key) | |
unbind (Swift_InputByteStream $is) | |
write ($bytes) | |
Protected Member Functions | |
_commit ($bytes) | |
_flush () | |
Protected Member Functions inherited from Swift_ByteStream_AbstractFilterableInputStream | |
_commit ($bytes) | |
_flush () | |
Private Member Functions | |
_getReadHandle () | |
_getWriteHandle () | |
_resetReadHandle () | |
_resetWriteHandle () | |
Private Attributes | |
$_mode | |
$_offset = 0 | |
$_path | |
$_quotes = false | |
$_reader | |
$_writer | |
Definition at line 22 of file FileByteStream.php.
Swift_ByteStream_FileByteStream::__construct | ( | $path, | |
$writable = false |
|||
) |
Create a new FileByteStream for $path.
string | $path | |
string | $writable | if true |
Definition at line 50 of file FileByteStream.php.
References $path.
|
protected |
Just write the bytes to the file
Definition at line 115 of file FileByteStream.php.
References _getWriteHandle(), and _resetReadHandle().
|
protected |
Not used
Definition at line 122 of file FileByteStream.php.
|
private |
Get the resource for reading
Definition at line 127 of file FileByteStream.php.
References $_reader.
Referenced by read().
|
private |
Get the resource for writing
Definition at line 143 of file FileByteStream.php.
References $_writer.
Referenced by _commit().
|
private |
Force a reload of the resource for reading
Definition at line 168 of file FileByteStream.php.
Referenced by _commit().
|
private |
Force a reload of the resource for writing
Definition at line 158 of file FileByteStream.php.
Swift_ByteStream_FileByteStream::getPath | ( | ) |
Get the complete path to the file.
Implements Swift_FileStream.
Definition at line 61 of file FileByteStream.php.
References $_path.
Swift_ByteStream_FileByteStream::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 75 of file FileByteStream.php.
References _getReadHandle().
Swift_ByteStream_FileByteStream::setReadPointer | ( | $byteOffset | ) |
Move the internal read pointer to $byteOffset in the stream.
int | $byteOffset |
Implements Swift_OutputByteStream.
Definition at line 103 of file FileByteStream.php.
|
private |
The mode this file is opened in for writing
Definition at line 34 of file FileByteStream.php.
|
private |
The internal pointer offset
Definition at line 28 of file FileByteStream.php.
|
private |
|
private |
If magic_quotes_runtime is on, this will be true
Definition at line 43 of file FileByteStream.php.
|
private |
A lazy-loaded resource handle for reading the file
Definition at line 37 of file FileByteStream.php.
Referenced by _getReadHandle().
|
private |
A lazy-loaded resource handle for writing the file
Definition at line 40 of file FileByteStream.php.
Referenced by _getWriteHandle().