javax.activation
public class MailcapCommandMap extends CommandMap
mailcap file (RFC
1524). Mailcap files are searched for in the following places:
| Constructor Summary | |
|---|---|
| MailcapCommandMap()
Default constructor. | |
| MailcapCommandMap(String fileName)
Constructor specifying a filename. | |
| MailcapCommandMap(InputStream is)
Constructor specifying an input stream. | |
| Method Summary | |
|---|---|
| void | addMailcap(String mail_cap)
Adds entries programmatically to the registry. |
| DataContentHandler | createDataContentHandler(String mimeType)
Returns the DCH for the specified MIME type. |
| CommandInfo[] | getAllCommands(String mimeType)
Returns all commands for the given MIME type. |
| CommandInfo | getCommand(String mimeType, String cmdName)
Returns the command with the specified name for the given MIME type. |
| CommandInfo[] | getPreferredCommands(String mimeType)
Returns the list of preferred commands for a given MIME type. |
Parameters: fileName the name of the file to read mailcap entries from
Parameters: is the input stream to read mailcap entries from
Parameters: mail_cap a mailcap string
Parameters: mimeType the MIME type
Parameters: mimeType the MIME type
Parameters: mimeType the MIME type cmdName the command verb
Parameters: mimeType the MIME type