| java.lang.Object | |
| ↳ | com.sun.activation.registries.MailcapFile |
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| addReverse | |||||||||||
| fallback_hash | Another Map like above, but for fallback entries. | ||||||||||
| native_commands | A Map indexed by MIME type (string) that references a List of native commands (string) corresponding to the type. | ||||||||||
| type_hash | A Map indexed by MIME type (string) that references a Map of commands for each type. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
The constructor that takes a filename as an argument.
| |||||||||||
The constructor that takes an input stream as an argument.
| |||||||||||
Mailcap file default constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
appendToMailcap: Append to this Mailcap DB, use the mailcap
format:
Comment == "# comment string
Entry == "mimetype; javabeanclass
| |||||||||||
Get the Map of fallback MailcapEntries based on the MIME type.
| |||||||||||
Get the Map of MailcapEntries based on the MIME type.
| |||||||||||
Return all the MIME types known to this mailcap file.
| |||||||||||
Return all the native comands for the given MIME type.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
A routine to parse individual entries in a Mailcap file.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Another Map like above, but for fallback entries.
A Map indexed by MIME type (string) that references a List of native commands (string) corresponding to the type.
A Map indexed by MIME type (string) that references a Map of commands for each type. The comand Map is indexed by the command name and references a List of class names (strings) for each command.
The constructor that takes a filename as an argument.
| new_fname | The file name of the mailcap file. |
|---|
| IOException |
|---|
The constructor that takes an input stream as an argument.
| is | The input stream |
|---|
| IOException |
|---|
Mailcap file default constructor.
appendToMailcap: Append to this Mailcap DB, use the mailcap
format:
Comment == "# comment string
Entry == "mimetype; javabeanclass
| mail_cap |
|---|
Get the Map of fallback MailcapEntries based on the MIME type.
Semantics: First check for the literal mime type,
if that fails looks for wildcard
| mime_type |
|---|
Get the Map of MailcapEntries based on the MIME type.
Semantics: First check for the literal mime type,
if that fails looks for wildcard
| mime_type |
|---|
Return all the MIME types known to this mailcap file.
Return all the native comands for the given MIME type.
| mime_type |
|---|
A routine to parse individual entries in a Mailcap file. Note that this routine does not handle line continuations. They should have been handled prior to calling this routine.
| mailcapEntry |
|---|
| IOException | |
|---|---|
| MailcapParseException |
| expectedToken | |
|---|---|
| otherExpectedToken | |
| anotherExpectedToken | |
| actualToken | |
| actualTokenValue |
| MailcapParseException |
|---|
| expectedToken | |
|---|---|
| otherExpectedToken | |
| actualToken | |
| actualTokenValue |
| MailcapParseException |
|---|