|
| stringContentHandler () |
|
| stringContentHandler (const string &buffer, const vmime::encoding &enc=NO_ENCODING) |
|
| stringContentHandler (const utility::stringProxy &str, const vmime::encoding &enc=NO_ENCODING) |
|
| stringContentHandler (const string &buffer, const size_t start, const size_t end, const vmime::encoding &enc=NO_ENCODING) |
|
| ~stringContentHandler () |
|
| stringContentHandler (const stringContentHandler &cts) |
|
stringContentHandler & | operator= (const stringContentHandler &cts) |
|
shared_ptr< contentHandler > | clone () const |
|
void | setData (const utility::stringProxy &str, const vmime::encoding &enc=NO_ENCODING) |
|
void | setData (const string &buffer, const vmime::encoding &enc=NO_ENCODING) |
|
void | setData (const string &buffer, const size_t start, const size_t end, const vmime::encoding &enc=NO_ENCODING) |
|
stringContentHandler & | operator= (const string &buffer) |
|
void | generate (utility::outputStream &os, const vmime::encoding &enc, const size_t maxLineLength=lineLengthLimits::infinite) const |
|
void | extract (utility::outputStream &os, utility::progressListener *progress=NULL) const |
|
void | extractRaw (utility::outputStream &os, utility::progressListener *progress=NULL) const |
|
size_t | getLength () const |
|
bool | isEncoded () const |
|
const vmime::encoding & | getEncoding () const |
|
bool | isEmpty () const |
|
bool | isBuffered () const |
|
void | setContentTypeHint (const mediaType &type) |
|
const mediaType | getContentTypeHint () const |
|
Public Member Functions inherited from contentHandler |
virtual | ~contentHandler () |
|
◆ stringContentHandler() [1/5]
◆ stringContentHandler() [2/5]
◆ stringContentHandler() [3/5]
◆ stringContentHandler() [4/5]
◆ ~stringContentHandler()
◆ stringContentHandler() [5/5]
◆ clone()
Return a copy of this object.
- Returns
- copy of this object
Implements contentHandler.
◆ extract()
◆ extractRaw()
Extract the contents into the specified stream, without decoding it.
It may be useful in case the encoding is not supported and you want to extract raw data.
- Parameters
-
os | output stream |
progress | progress listener, or NULL if you do not want to receive progress notifications |
Implements contentHandler.
References stringProxy::extract(), and stringProxy::length().
◆ generate()
◆ getContentTypeHint()
Returns a hint about the kind of data managed by this object.
- Returns
- type content media type
Implements contentHandler.
◆ getEncoding()
Returns the encoding used for data (or "binary" if not encoded).
- Returns
- encoding used for data
Implements contentHandler.
◆ getLength()
◆ isBuffered()
bool isBuffered |
( |
| ) |
const |
|
virtual |
Indicates whether the extract() method can be called multiple times.
- Returns
- true if the data can be extracted multiple times, or false if not (ie. streamed data from socket)
Implements contentHandler.
◆ isEmpty()
◆ isEncoded()
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ setContentTypeHint()
void setContentTypeHint |
( |
const mediaType & |
type | ) |
|
|
virtual |
Gives a hint about the kind of data managed by this object.
- Parameters
-
Implements contentHandler.
◆ setData() [1/3]
◆ setData() [2/3]
◆ setData() [3/3]
The documentation for this class was generated from the following files: