Class Swift_ByteStream_FileByteStream
Allows reading and writing of bytes to and from a file.
- Swift_ByteStream_AbstractFilterableInputStream implements Swift_InputByteStream, Swift_Filterable
- Swift_ByteStream_FileByteStream implements Swift_FileStream
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php
Methods summary
public
|
|
public
string
|
|
public
string
|
#
read( integer $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. |
public
boolean
|
#
setReadPointer( integer $byteOffset )
Move the internal read pointer to $byteOffset in the stream. |
protected
|
|
protected
|
|
private
|
|
private
|
|
private
|
|
private
|
|
private
|
|
private
|
Methods inherited from Swift_ByteStream_AbstractFilterableInputStream
addFilter()
,
bind()
,
commit()
,
flushBuffers()
,
removeFilter()
,
unbind()
,
write()
Magic methods summary
Properties summary
private
integer
|
$_offset |
#
The internal pointer offset |
private
mixed
|
$_path |
#
The path to the file |
private
mixed
|
$_mode |
#
The mode this file is opened in for writing |
private
mixed
|
$_reader |
#
A lazy-loaded resource handle for reading the file |
private
mixed
|
$_writer |
#
A lazy-loaded resource handle for writing the file |
private
boolean
|
$_quotes |
#
If magic_quotes_runtime is on, this will be true |
private
mixed
|
$_seekable |
#
If stream is seekable true/false, or null if not known |