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