MailMimeParser 1.1

StreamFactory

Factory class for Psr7 stream decorators used in MailMimeParser.

Tags
author

Zaahid Bateson

Table of Contents

getLimitedContentStream()  : SeekingLimitStream
Returns a SeekingLimitStream using $part->getStreamContentLength() and $part->getStreamContentStartOffset()
getLimitedPartStream()  : SeekingLimitStream
Returns a SeekingLimitStream using $part->getStreamPartLength() and $part->getStreamPartStartOffset()
newBase64Stream()  : Base64Stream
Creates and returns a Base64Stream with an internal PregReplaceFilterStream that filters out non-base64 characters.
newCharsetStream()  : CharsetStream
Creates and returns a CharsetStream
newChunkSplitStream()  : ChunkSplitStream
Creates a ChunkSplitStream.
newHeaderStream()  : HeaderStream
Creates and returns a HeaderStream
newMessagePartStream()  : MessagePartStream
Creates and returns a MessagePartStream
newNonClosingStream()  : NonClosingStream
Creates a non-closing stream that doesn't close it's internal stream when closing/detaching.
newQuotedPrintableStream()  : QuotedPrintableStream
Creates and returns a QuotedPrintableStream.
newUUStream()  : UUStream
Creates and returns a UUStream
newLimitStream()  : SeekingLimitStream
Creates and returns a SeekingLimitedStream.

Methods

getLimitedContentStream()

Returns a SeekingLimitStream using $part->getStreamContentLength() and $part->getStreamContentStartOffset()

public getLimitedContentStream(StreamInterface $stream, PartBuilder $part) : SeekingLimitStream
Parameters
$stream : StreamInterface
$part : PartBuilder
Return values
SeekingLimitStream

getLimitedPartStream()

Returns a SeekingLimitStream using $part->getStreamPartLength() and $part->getStreamPartStartOffset()

public getLimitedPartStream(StreamInterface $stream, PartBuilder $part) : SeekingLimitStream
Parameters
$stream : StreamInterface
$part : PartBuilder
Return values
SeekingLimitStream

newBase64Stream()

Creates and returns a Base64Stream with an internal PregReplaceFilterStream that filters out non-base64 characters.

public newBase64Stream(StreamInterface $stream) : Base64Stream
Parameters
$stream : StreamInterface
Return values
Base64Stream

newCharsetStream()

Creates and returns a CharsetStream

public newCharsetStream(StreamInterface $stream, string $fromCharset, string $toCharset) : CharsetStream
Parameters
$stream : StreamInterface
$fromCharset : string
$toCharset : string
Return values
CharsetStream

newChunkSplitStream()

Creates a ChunkSplitStream.

public newChunkSplitStream(StreamInterface $stream) : ChunkSplitStream
Parameters
$stream : StreamInterface
Return values
ChunkSplitStream

newNonClosingStream()

Creates a non-closing stream that doesn't close it's internal stream when closing/detaching.

public newNonClosingStream(StreamInterface $stream) : NonClosingStream
Parameters
$stream : StreamInterface
Return values
NonClosingStream

newQuotedPrintableStream()

Creates and returns a QuotedPrintableStream.

public newQuotedPrintableStream(StreamInterface $stream) : QuotedPrintableStream
Parameters
$stream : StreamInterface
Return values
QuotedPrintableStream

newUUStream()

Creates and returns a UUStream

public newUUStream(StreamInterface $stream) : UUStream
Parameters
$stream : StreamInterface
Return values
UUStream

newLimitStream()

Creates and returns a SeekingLimitedStream.

private newLimitStream(StreamInterface $stream, int $length, int $start) : SeekingLimitStream
Parameters
$stream : StreamInterface
$length : int
$start : int
Return values
SeekingLimitStream

Search results