Mime Class Reference

#include <Mime.h>

Collaboration diagram for Mime:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 34 of file Mime.h.


Member Function Documentation

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::decodeBase64 ( const String source,
String destination 
) [static]

Definition at line 71 of file Mime.cpp.

References cd64, decodeBlock(), and OK.

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]

Definition at line 149 of file Mime.cpp.

References cb64.

Referenced by encodeBase64().

void Mime::decodeBlock ( unsigned char  in[4],
unsigned char  out[3] 
) [static, private]

Definition at line 158 of file Mime.cpp.

Referenced by decodeBase64().


Member Data Documentation

const char *const Mime::cb64 [static, private]

Definition at line 51 of file Mime.h.

Referenced by encodeBlock().

const char *const Mime::cd64 [static, private]

Definition at line 54 of file Mime.h.

Referenced by decodeBase64().


The documentation for this class was generated from the following files:
Generated on Thu Sep 6 20:13:43 2007 for Pylon Application Platform by  doxygen 1.5.1