public function getContentStream($charset = MailMimeParser::DEFAULT_CHARSET)
    {
        if ($this->hasContent()) {
            $tr = ($this->ignoreTransferEncoding) ? '' : $this->getContentTransferEncoding();
            $ch = ($this->charsetOverride !== null) ? $this->charsetOverride : $this->getCharset();
            return $this->partStreamFilterManager->getContentStream(
                $tr,
                $ch,
                $charset
            );
        }
        return null;
    }
public function getContentStream($charset = MailMimeParser::DEFAULT_CHARSET)
    {
        if ($this->hasContent()) {
            $tr = ($this->ignoreTransferEncoding) ? '' : $this->getContentTransferEncoding();
            $ch = ($this->charsetOverride !== null) ? $this->charsetOverride : $this->getCharset();
            return $this->partStreamFilterManager->getContentStream(
                $tr,
                $ch,
                $charset
            );
        }
        return null;
    }
public function getContentStream ( $ charset = MailMimeParser :: DEFAULT_CHARSET ) { if ( $ this -> hasContent ( ) ) { $ tr = ( $ this -> ignoreTransferEncoding ) ? '' : $ this -> getContentTransferEncoding ( ) ; $ ch = ( $ this -> charsetOverride !== null ) ? $ this -> charsetOverride : $ this -> getCharset ( ) ; return $ this -> partStreamFilterManager -> getContentStream ( $ tr , $ ch , $ charset ) ; } return null ; }
Returns the StreamInterface for the part's content or null if the part
doesn't have a content section.

The library automatically handles decoding and charset conversion (to the
target passed $charset) based on the part's transfer encoding as returned
by {@see MessagePart::getContentTransferEncoding()} and the part's
charset as returned by {@see MessagePart::getCharset()}.  The returned
stream is ready to be read from directly.

Note that the returned Stream is a shared object.  If called multiple
time with the same $charset, and the value of the part's
Content-Transfer-Encoding header not having changed, the stream will be
rewound.  This would affect other existing variables referencing the
stream, for example:

```
// assuming $part is a part containing the following
// string for its content: '12345678'
$stream = $part->getContentStream();
$someChars = $part->read(4);

$stream2 = $part->getContentStream();
$moreChars = $part->read(4);
echo ($someChars === $moreChars);    //1
```

In this case the Stream was rewound, and $stream's second call to read 4
bytes reads the same first 4.

@param string $charset
@return StreamInterface
Returns the StreamInterface for the part s content or null if the part doesn t have a content section .