class PMIMEInfo |
This class contains the Multipurpose Internet Mail Extensions parameters and variables
![]() | PrintOn ( ostream &strm ) const Output the contents of the MIME dictionary to the stream. |
![]() | ReadFrom ( istream &strm ) Input the contents of the MIME dictionary from the stream. |
![]() | SetAt ( const char* key, const PString value ) Add a new value to the MIME info. |
![]() | SetAt ( const PString & key, const PString value ) Add a new value to the MIME info. |
![]() | SetAt ( const PCaselessString & key, const PString value ) Add a new value to the MIME info. |
![]() | Contains ( const char* key ) const Determine if the specified key is present in the MIME information set. |
![]() | Contains ( const PString & key ) const Determine if the specified key is present in the MIME information set. |
![]() | Contains ( const PCaselessString & key ) const Determine if the specified key is present in the MIME information set. |
![]() | Read ( PInternetProtocol & socket ) Read MIME information from the socket. |
![]() | Write ( PInternetProtocol & socket ) const Write MIME information to the socket. |
![]() | AddMIME ( const PString & line ) Add a MIME field given a "name: value" format string. |
![]() | GetString ( const PString & key, const PString & dflt ) const Get a string for the particular MIME info field with checking for existance. |
![]() | GetInteger ( const PString & key, long dflt = 0 ) const Get an integer value for the particular MIME info field with checking for existance. |
![]() | SetInteger ( const PCaselessString & key, long value ) Set an integer value for the particular MIME info field |
![]() | SetAssociation ( const PStringToString & allTypes, BOOL merge = TRUE ) Set an association between a file type and a MIME content type. |
![]() | GetContentType ( const PString & fileType ) Look up the file type to MIME content type association dictionary and return the MIME content type string. |
Overrides from class PObject
Construction
New functions for class
Overrides from class PCollection
Overrides from class PContainer
Common functions for collections
Common functions for containers
Run Time Type functions
I/O functions
Miscellaneous functions
Comparison functions
This class contains the Multipurpose Internet Mail Extensions parameters and variables
Note that if the merge parameter if TRUE then the dictionary is merged into the current association list and is not a simple replacement.
The default values placed in this dictionary are:
".txt", "text/plain" ".text", "text/plain" ".html", "text/html" ".htm", "text/html" ".aif", "audio/aiff" ".aiff", "audio/aiff" ".au", "audio/basic" ".snd", "audio/basic" ".wav", "audio/wav" ".gif", "image/gif" ".xbm", "image/x-bitmap" ".tif", "image/tiff" ".tiff", "image/tiff" ".jpg", "image/jpeg" ".jpe", "image/jpeg" ".jpeg", "image/jpeg" ".avi", "video/avi" ".mpg", "video/mpeg" ".mpeg", "video/mpeg" ".qt", "video/quicktime" ".mov", "video/quicktime"
The default content type will be "application/octet-stream".
Alphabetic index HTML hierarchy of classes or Java