#include <UT_MIME.h>
|
UT_MIME_Status | open (UT_IStream &is) |
|
UT_MIME_Status | readPart (UT_IStream &is, UT_String &path, UT_WorkBuffer &data, exint *modtime=nullptr, const char *ext_src=nullptr) |
|
void | close (UT_IStream &is) |
|
void | open (std::ostream &os, const char *boundaryText=nullptr) |
|
void | writePart (std::ostream &os, const UT_StringHolder &path, const UT_WorkBuffer &data, const exint modtime=-1) |
| Create a new MIME part in the file with the data specified. More...
|
|
void | writeExternalReference (std::ostream &os, const UT_StringHolder &path, const exint modtime=-1) |
| Create a new MIME part in the file to indicate externally stored data. More...
|
|
void | close (std::ostream &os) |
|
const UT_WorkBuffer & | getBoundaryText () const |
|
Definition at line 39 of file UT_MIME.h.
Function signature for functions used to process MIME sections. This does all processing in-memory.
- Parameters
-
in_data | Arbitrary input data. |
out_data | Post processed data output stream which will be MIME data. |
filter_data | opaque pointer to data used by the filter func. |
- Returns
- False if there was a problem with the filtering.
Definition at line 87 of file UT_MIME.h.
Map of section name pattern to a text filter.
Definition at line 102 of file UT_MIME.h.
void UT_MIME::close |
( |
std::ostream & |
os | ) |
|
static bool UT_MIME::filter |
( |
UT_IStream & |
is, |
|
|
std::ostream & |
os, |
|
|
const char * |
inclusions, |
|
|
const char * |
exclusions, |
|
|
const TextFilterList * |
filters = nullptr |
|
) |
| |
|
static |
Runs through a MIME archive and apply the TextFilterList filters to the sections as appropriate. The complete input mime file is
is read. Packets matching inclusions
but not matching exclusions
are written to the output stream os
as MIME data.
All patterns follow UT_String::multiMatch() except as noted.
- Parameters
-
is | input text stream of MIME data. |
os | output stream which will be MIME data. |
inclusions | Only include these sections. nullptr to include all sections. |
exclusions | Exclude these sections from sections that pass inclusions . |
filters | Filters to apply. |
- Returns
- False if there was a problem with the stream or parameters.
Return a list of all the files stored externally from this MIME file. 'external_src' is optionally the directory the files are stored in.
Return a list of all the files stored externally from this MIME file. 'external_src' is optionally the directory the files are stored in.
void UT_MIME::open |
( |
std::ostream & |
os, |
|
|
const char * |
boundaryText = nullptr |
|
) |
| |
Read the next part of the MIME file. 'external_src' is optionally the directory the external files are stored in. If this is not specified then UT_MIME_EXTERNAL_OK is returned for parts that are stored externally. If the external can be read its contents will be placed in 'data'.
Given a UT_MIME_Status, return 'true' if the status is not an error condition.
Create a new MIME part in the file to indicate externally stored data.
Create a new MIME part in the file with the data specified.
const char* const UT_MIME::theDefaultBoundaryString |
|
static |
The documentation for this class was generated from the following file: