VMime
|
Public Member Functions | |
qpEncoder () | |
size_t | encode (utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL) |
size_t | decode (utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL) |
const std::vector< string > | getAvailableProperties () const |
size_t | getEncodedSize (const size_t n) const |
size_t | getDecodedSize (const size_t n) const |
Public Member Functions inherited from encoder | |
encoder () | |
virtual | ~encoder () |
const propertySet & | getProperties () const |
propertySet & | getProperties () |
const propertySet & | getResults () const |
Static Public Member Functions | |
static bool | RFC2047_isEncodingNeededForChar (const unsigned char c) |
static int | RFC2047_getEncodedLength (const unsigned char c) |
Static Protected Attributes | |
static const unsigned char | sm_hexDigits [17] = "0123456789ABCDEF" |
static const unsigned char | sm_hexDecodeTable [256] |
static const unsigned char | sm_RFC2047EncodeTable [128] |
Additional Inherited Members | |
Protected Member Functions inherited from encoder | |
propertySet & | getResults () |
Protected Member Functions inherited from object | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
Quoted-printable encoder.
qpEncoder | ( | ) |
|
virtual |
Decode data.
in | input data (encoded) |
out | output stream for decoded data |
progress | progress listener, or NULL if you do not want to receive progress notifications |
Implements encoder.
References inputStream::eof(), encoder::getProperties(), propertySet::getProperty(), progressListener::progress(), inputStream::read(), inputStream::reset(), qpEncoder::sm_hexDecodeTable, and progressListener::stop().
|
virtual |
Encode data.
in | input data (decoded) |
out | output stream for encoded data |
progress | progress listener, or NULL if you do not want to receive progress notifications |
Implements encoder.
References inputStream::eof(), encoder::getProperties(), propertySet::getProperty(), progressListener::progress(), inputStream::read(), inputStream::reset(), qpEncoder::sm_RFC2047EncodeTable, progressListener::start(), and progressListener::stop().
|
virtual |
Return a list of property names that can be set for this encoder.
Reimplemented from encoder.
References encoder::getAvailableProperties().
Return the encoded size for the specified input (encoded) size.
If the size is not exact, it may be an estimate which should always be larger than the actual decoded size.
n | count of input (encoded) bytes |
Implements encoder.
Return the encoded size for the specified input (decoded) size.
If the size is not exact, it may be an estimate which should always be larger than the actual encoded size.
n | count of input (decoded) bytes |
Implements encoder.
References encoder::getProperties(), and propertySet::getProperty().
|
static |
References qpEncoder::sm_RFC2047EncodeTable.
Referenced by wordEncoder::getNextChunk().
|
static |
References qpEncoder::sm_RFC2047EncodeTable.
|
staticprotected |
Referenced by qpEncoder::decode().
|
staticprotected |
|
staticprotected |
Referenced by qpEncoder::encode(), qpEncoder::RFC2047_getEncodedLength(), and qpEncoder::RFC2047_isEncodingNeededForChar().