A part stream container that proxies requests for content streams to a parser
to read the content.
Keeps reference to the original stream a part was parsed from, using that
stream as the part's stream instead of the PartStreamContainer's
MessagePartStream (which dynamically creates a stream from an IMessagePart)
unless the part changed.
The ParserPartStreamContainer must also be attached to its underlying part
with SplSubject::attach() so the ParserPartStreamContainer gets notified of
any changes.
- author Zaahid Bateson
- Extends
- Implements
SplObserver
Methods |
public __construct(ZBateson |
public __destruct() |
public getBinaryContentStream(?string $transferEncoding = NULL) : ?Psr\Http\Message\StreamInterface |
public getContentStream(?string $transferEncoding, ?string $fromCharset, ?string $toCharset) |
public getStream() |
public hasContent() : bool |
public setContentStream(?Psr\Http\Message\StreamInterface $contentStream = NULL) : self |
public update(SplSubject $subject) : void |
Properties |
protected $contentParseRequested = false
|
protected $detachParsedStream = false
|
protected $parsedStream = NULL
|
protected $parserProxy = NULL
|
protected $partUpdated = false
|
Methods |
protected requestParsedContentStream() : self Requests content from the parser if not previously requested, and calls |
protected requestParsedStream() : self Ensures the parser has parsed the entire part, and sets |