#include <Mime.h>
Collaboration diagram for Mime:

Static Public Member Functions | |
| static MimeEncoding | encoding (const String &name) |
| static int | encodeBase64 (const String &source, String &destination, unsigned int lineSize=MIME_BASE64_LINE_WIDTH_DEFAULT) |
| static int | decodeBase64 (const String &source, String &destination) |
| static int | encodeData (const String &source, String &destination, const MimeEncoding encoding=MIME_ENC_BASE64) |
Static Private Member Functions | |
| static void | encodeBlock (unsigned char in[3], unsigned char out[4], int len) |
| static void | decodeBlock (unsigned char in[4], unsigned char out[3]) |
Static Private Attributes | |
| static const char *const | cb64 |
| static const char *const | cd64 |
Definition at line 34 of file Mime.h.
| MimeEncoding Mime::encoding | ( | const String & | name | ) | [static] |
Definition at line 19 of file Mime.cpp.
References CSTRING(), MIME_ENC_BASE64, MIME_ENC_BZ2BASE64, MIME_ENC_NAME_BASE64, MIME_ENC_NAME_BZ2BASE64, MIME_ENC_NAME_NONE, MIME_ENC_NAME_ZBASE64, MIME_ENC_NONE, MIME_ENC_UNKNOWN, and MIME_ENC_ZBASE64.
Referenced by XmlDataElement::XmlDataElement().
| int Mime::encodeBase64 | ( | const String & | source, | |
| String & | destination, | |||
| unsigned int | lineSize = MIME_BASE64_LINE_WIDTH_DEFAULT | |||
| ) | [static] |
Definition at line 36 of file Mime.cpp.
References encodeBlock(), and OK.
Referenced by encodeData().
| int Mime::encodeData | ( | const String & | source, | |
| String & | destination, | |||
| const MimeEncoding | encoding = MIME_ENC_BASE64 | |||
| ) | [static] |
Definition at line 105 of file Mime.cpp.
References encodeBase64(), ERROR, ERROR_BACKTRACE(), FAILED(), MEM_ALLOC, MEM_FREE, MIME_ENC_BASE64, MIME_ENC_BZ2BASE64, MIME_ENC_NONE, MIME_ENC_ZBASE64, MSG_BZIP2_COMPRESSION, MSG_MEMORY_CANNOT_ALLOCATE, MSG_NOT_IMPLEMENTED, and OK.
| void Mime::encodeBlock | ( | unsigned char | in[3], | |
| unsigned char | out[4], | |||
| int | len | |||
| ) | [static, private] |
| void Mime::decodeBlock | ( | unsigned char | in[4], | |
| unsigned char | out[3] | |||
| ) | [static, private] |
const char *const Mime::cb64 [static, private] |
const char *const Mime::cd64 [static, private] |
1.5.1