public synchronized DataContentHandler createDataContentHandler (String mimeType)
Overriding: javax.activation.CommandMap
Return the DataContentHandler for the specified MIME type.
Parameters:
Returns: the DataContentHandler
public synchronized CommandInfo[] getAllCommands (String mimeType)
Overriding: javax.activation.CommandMap
Get all the available commands in all mailcap files known to
this instance of MailcapCommandMap for this MIME type.
Parameters:
Returns: the CommandInfo objects representing all the commands.
public synchronized CommandInfo getCommand (String mimeType, String cmdName)
Overriding: javax.activation.CommandMap
Get the command corresponding to cmdName for the MIME type.
Parameters:
mimeType | | the MIME type |
cmdName | | the command name |
Returns: the CommandInfo object corresponding to the command.
public synchronized String[] getMimeTypes ()
Overriding: javax.activation.CommandMap
Get all the MIME types known to this command map.
Returns: array of MIME types as strings
Since: JAF 1.1
public synchronized CommandInfo[] getPreferredCommands (String mimeType)
Overriding: javax.activation.CommandMap
Get the preferred command list for a MIME Type. The MailcapCommandMap
searches the mailcap files as described above under
Mailcap file search order.
The result of the search is a proper subset of available
commands in all mailcap files known to this instance of
MailcapCommandMap. The first entry for a particular command
is considered the preferred command.
Parameters:
Returns: the CommandInfo objects representing the preferred commands.