Description
Swift_ByteStream_AbstractFilterableInputStream
|
--Swift_ByteStream_FileByteStream
Located in File: /vendors/swiftMailer/classes/Swift/ByteStream/FileByteStream.php
Allows reading and writing of bytes to and from a file.
Method Detail
Summary:
Swift_ByteStream_FileByteStream
__construct
(
string $path, [
string $writable =
false])
string
read
(
int $length)
Constructor __construct (line 50)
Swift_ByteStream_FileByteStream __construct(
string
$path, [string
$writable = false])
Create a new FileByteStream for $path.
Parameters
- string $path:
- string $writable: if true
Info
Method getPath (line 61)
string getPath(
)
Implementation of:
- Swift_FileStream::getPath()
- Get the complete path to the file.
Get the complete path to the file.
Info
Method read (line 75)
string read(
int
$length)
Implementation of:
- Swift_OutputByteStream::read()
- 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.
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.
Parameters
Info
- throws - Swift_IoException
- access - public
Method setReadPointer (line 103)
boolean setReadPointer(
int
$byteOffset)
Implementation of:
- Swift_OutputByteStream::setReadPointer()
- Move the internal read pointer to $byteOffset in the stream.
Move the internal read pointer to $byteOffset in the stream.
Parameters
Info