Documentation

AbstractFilterableInputStream
in package
implements InputInterface, FilterableInterface

AbstractYes

Abstract filterable input stream class

Tags
category

Pop

author

Chris Corbyn, from the SwiftMailer library https://github.com/swiftmailer/swiftmailer

version
4.0.0

Table of Contents

Interfaces

InputInterface
Input byte stream interface
FilterableInterface
Filterable interface

Properties

$sequence  : int
Write sequence
$filters  : array<string|int, mixed>
StreamFilters
$mirrors  : array<string|int, mixed>
Bound streams
$writeBuffer  : string
A buffer for writing

Methods

addFilter()  : void
Add a StreamFilter to this InputByteStream
bind()  : void
Attach $is to this stream.
commit()  : void
For any bytes that are currently buffered inside the stream, force them off the buffer
flushBuffers()  : void
Flush the contents of the stream (empty it) and set the internal pointer to the beginning.
removeFilter()  : void
Remove an already present StreamFilter based on its $key
unbind()  : void
Remove an already bound stream.
write()  : mixed
Writes $bytes to the end of the stream
commitBytes()  : int
Commit the given bytes to the storage medium immediately
flush()  : void
Flush any buffers/content with immediate effect
doWrite()  : void
Just write the bytes to the stream
filter()  : mixed
Run $bytes through all filters

Properties

Methods

flushBuffers()

Flush the contents of the stream (empty it) and set the internal pointer to the beginning.

public flushBuffers() : void

removeFilter()

Remove an already present StreamFilter based on its $key

public removeFilter(string $key) : void
Parameters
$key : string

commitBytes()

Commit the given bytes to the storage medium immediately

protected abstract commitBytes(string $bytes) : int
Parameters
$bytes : string
Return values
int

        
On this page

Search results