Copied!

Factory class for Psr7 stream decorators used in MailMimeParser.

CloneableInstantiable
Methods
public __construct(bool $throwExceptionReadingPartContentFromUnsupportedCharsets)
public getLimitedContentStream(ZBateson\MailMimeParser\Parser\PartBuilder $part) : ?Psr\Http\Message\StreamInterface
 

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

public getLimitedPartStream(ZBateson\MailMimeParser\Parser\PartBuilder $part) : Psr\Http\Message\StreamInterface
 

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

public getTransferEncodingDecoratedStream(Psr\Http\Message\StreamInterface $stream, ?string $transferEncoding, ?string $filename = NULL) : Psr\Http\Message\StreamInterface
public newBase64Stream(Psr\Http\Message\StreamInterface $stream) : Psr\Http\Message\StreamInterface
 

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

public newCharsetStream(Psr\Http\Message\StreamInterface $stream, string $streamCharset, string $stringCharset) : Psr\Http\Message\StreamInterface
 

Creates and returns a CharsetStream

public newChunkSplitStream(Psr\Http\Message\StreamInterface $stream) : Psr\Http\Message\StreamInterface
 

Creates a ChunkSplitStream.

public newDecoratedCachingStream(Psr\Http\Message\StreamInterface $stream, callable $decorator) : Psr\Http\Message\StreamInterface
 

Creates and returns a DecoratedCachingStream

public newDecoratedMessagePartStream(ZBateson\MailMimeParser\Message\IMessagePart $part, Psr\Http\Message\StreamInterface $stream) : ZBateson\MailMimeParser\Stream\MessagePartStreamDecorator
public newHeaderStream(ZBateson\MailMimeParser\Message\IMessagePart $part) : Psr\Http\Message\StreamInterface
 

Creates and returns a HeaderStream

public newMessagePartStream(ZBateson\MailMimeParser\Message\IMessagePart $part) : ZBateson\MailMimeParser\Stream\MessagePartStreamDecorator
 

Creates and returns a MessagePartStream

public newNonClosingStream(Psr\Http\Message\StreamInterface $stream) : Psr\Http\Message\StreamInterface
 

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

public newQuotedPrintableStream(Psr\Http\Message\StreamInterface $stream) : Psr\Http\Message\StreamInterface
 

Creates and returns a QuotedPrintableStream.

public newSeekingStream(Psr\Http\Message\StreamInterface $stream) : Psr\Http\Message\StreamInterface
 

Creates and returns a SeekingLimitedStream without limits, so it's a stream that preserves its current position on the underlying stream it reads from.

public newUUStream(Psr\Http\Message\StreamInterface $stream) : Psr\Http\Message\StreamInterface
 

Creates and returns a UUStream

Properties
protected bool $throwExceptionReadingPartContentFromUnsupportedCharsets
 
  • var bool if true, saving a content stream with an unsupported charset will be written in the default charset.
Methods
private newLimitStream(Psr\Http\Message\StreamInterface $stream, int $length, int $start) : Psr\Http\Message\StreamInterface
 

Creates and returns a SeekingLimitedStream.

© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration