Factory class for Psr7 stream decorators used in MailMimeParser.
- author Zaahid Bateson
| Methods |
| public __construct(bool $throwExceptionReadingPartContentFromUnsupportedCharsets) |
| public getLimitedContentStream(ZBateson Returns a SeekingLimitStream using $part->getStreamContentLength() and $part->getStreamContentStartPos() |
| public getLimitedPartStream(ZBateson 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 |
| public newHeaderStream(ZBateson Creates and returns a HeaderStream |
| public newMessagePartStream(ZBateson 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
|
| Methods |
| private newLimitStream(Psr\Http\Message\StreamInterface $stream, int $length, int $start) : Psr\Http\Message\StreamInterface Creates and returns a SeekingLimitedStream. |