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 mailcap)
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. |
String[] | getNativeCommands(String mimeType)
Get the native commands 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: mailcap a mailcap string
Parameters: mimeType the MIME type
Parameters: mimeType the MIME type
Parameters: mimeType the MIME type cmdName the command verb
Returns: array of native command entries
Since: JAF 1.1
Parameters: mimeType the MIME type