Class Swift_Transport_StreamBuffer
A generic IoBuffer implementation supporting remote sockets and local processes.
- Swift_ByteStream_AbstractFilterableInputStream implements Swift_InputByteStream, Swift_Filterable
- Swift_Transport_StreamBuffer implements Swift_Transport_IoBuffer
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php
Methods summary
public
|
#
__construct(
Create a new StreamBuffer using $replacementFactory for transformations. |
public
|
#
initialize( array $params )
Perform any initialization needed, using the given $params. Parameters will vary depending upon the type of IoBuffer used. |
public
|
#
setParam( string $param, mixed $value )
Set an individual param on the buffer (e.g. switching to SSL). |
public
|
|
public
|
|
public
|
#
setWriteTranslations( array $replacements )
Set an array of string replacements which should be made on data written to the buffer. This could replace LF with CRLF for example. |
public
string
|
#
readLine( integer $sequence )
Get a line of output (including any CRLF). The $sequence number comes from any writes and may or may not be used depending upon the implementation. |
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
|
|
protected
|
|
protected
|
|
private
|
|
private
|
|
private
|
Methods inherited from Swift_ByteStream_AbstractFilterableInputStream
addFilter()
,
bind()
,
commit()
,
flushBuffers()
,
removeFilter()
,
unbind()
,
write()
Magic methods summary
Constants summary
Constants inherited from Swift_Transport_IoBuffer
Properties summary
private
mixed
|
$_stream |
#
A primary socket |
private
mixed
|
$_in |
#
The input stream |
private
mixed
|
$_out |
#
The output stream |
private
array
|
$_params |
#
Buffer initialization parameters |
private
mixed
|
$_replacementFactory |
#
The ReplacementFilterFactory |
private
array
|
$_translations |
#
Translations performed on data being streamed into the buffer |