| Modifier and Type | Field and Description |
|---|---|
| private static boolean | |
| private Map | fallback_hash
Another Map like above, but for fallback entries. |
| private Map | native_commands
A Map indexed by MIME type (string) that references a List of native commands (string) corresponding to the type. |
| private Map | type_hash
A Map indexed by MIME type (string) that references a Map of commands for each type. |
| Access | Constructor and Description |
|---|---|
| public | MailcapFile(String
The file name of the mailcap file. new_fname)The constructor that takes a filename as an argument. |
| public | MailcapFile(InputStream
the input stream is)The constructor that takes an input stream as an argument. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | appendToMailcap(String mail_cap)
appendToMailcap: Append to this Mailcap DB, use the mailcap format: Comment == "# comment string Entry == "mimetype; javabeanclass<nl> Example: # this is a comment image/gif jaf.viewers.ImageViewer |
| public Map | getMailcapFallbackList(String mime_type)
Get the Map of fallback MailcapEntries based on the MIME type. |
| public Map | |
| public String[] | |
| public String[] | |
| private Map | |
| private void | |
| protected void | |
| protected static void | |
| protected static void | reportParseError(int expectedToken, int otherExpectedToken, int actualToken, String actualTokenValue)
|
| protected static void | reportParseError(int expectedToken, int otherExpectedToken, int anotherExpectedToken, int actualToken, String actualTokenValue)
|
| addReverse | back to summary |
|---|---|
| private static boolean addReverse | |
| fallback_hash | back to summary |
|---|---|
| private Map<K, V> fallback_hash Another Map like above, but for fallback entries. | |
| native_commands | back to summary |
|---|---|
| private Map<K, V> native_commands A Map indexed by MIME type (string) that references a List of native commands (string) corresponding to the type. | |
| type_hash | back to summary |
|---|---|
| private Map<K, V> type_hash 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. | |
| MailcapFile | back to summary |
|---|---|
| public MailcapFile(String new_fname) throws IOException The constructor that takes a filename as an argument.
| |
| MailcapFile | back to summary |
|---|---|
| public MailcapFile(InputStream is) throws IOException The constructor that takes an input stream as an argument.
| |
| MailcapFile | back to summary |
|---|---|
| public MailcapFile() Mailcap file default constructor. | |
| appendToMailcap | back to summary |
|---|---|
| public void appendToMailcap(String mail_cap) appendToMailcap: Append to this Mailcap DB, use the mailcap
format:
Comment == "# comment string
Entry == "mimetype; javabeanclass | |
| getMailcapFallbackList | back to summary |
|---|---|
| public Map 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 | |
| getMailcapList | back to summary |
|---|---|
| public Map Get the Map of MailcapEntries based on the MIME type.
Semantics: First check for the literal mime type,
if that fails looks for wildcard | |
| getMimeTypes | back to summary |
|---|---|
| public String[] getMimeTypes() Return all the MIME types known to this mailcap file. | |
| getNativeCommands | back to summary |
|---|---|
| public String[] getNativeCommands(String mime_type) Return all the native comands for the given MIME type. | |
| mergeResults | back to summary |
|---|---|
| private Map Merge the first hash into the second. This merge will only effect the hashtable that is returned, we don't want to touch the one passed in since its integrity must be maintained. | |
| parse | back to summary |
|---|---|
| private void parse(Reader reader) throws IOException parse file into a hash table of MC Type Entry Obj | |
| parseLine | back to summary |
|---|---|
| protected void parseLine(String mailcapEntry) throws MailcapParseException, IOException 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. | |
| reportParseError | back to summary |
|---|---|
| protected static void reportParseError(int expectedToken, int actualToken, String actualTokenValue) throws MailcapParseException | |
| reportParseError | back to summary |
|---|---|
| protected static void reportParseError(int expectedToken, int otherExpectedToken, int actualToken, String actualTokenValue) throws MailcapParseException | |
| reportParseError | back to summary |
|---|---|
| protected static void reportParseError(int expectedToken, int otherExpectedToken, int anotherExpectedToken, int actualToken, String actualTokenValue) throws MailcapParseException | |