Class representing a MIME part.
create a new Mime Part. The (unencoded) content of the Part as passed as a string or stream
| Parameters: | mixed – String or Stream containing the content |
|---|
check if this part can be read as a stream. if true, getEncodedStream can be called, otherwise only getContent can be used to fetch the encoded content of the part
| Return type: | bool |
|---|
if this was created with a stream, return a filtered stream for reading the content. very useful for large file attachments.
| Parameters: | string – |
|---|---|
| Return type: | stream |
| Throws : | ExceptionRuntimeException if not a stream or unable to append filter |
Get the Content of the current Mime Part in the given encoding.
| Parameters: | string – |
|---|---|
| Return type: | string |
Get the RAW unencoded content from this part
| Return type: | string |
|---|