public class MailcapCommandMap extends CommandMap
| Constructor and Description |
|---|
MailcapCommandMap() |
MailcapCommandMap(InputStream is) |
MailcapCommandMap(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMailcap(String mail_cap) |
DataContentHandler |
createDataContentHandler(String mimeType)
Locate a DataContentHandler for the given mime
type.
|
CommandInfo[] |
getAllCommands(String mimeType)
Get all available commands for the given
mimetype.
|
CommandInfo |
getCommand(String mimeType,
String cmdName)
Get the default command implementation for a
give mimeType
|
String[] |
getMimeTypes()
Get all MIME types known to this command map.
|
String[] |
getNativeCommands(String mimeType)
Return the list of raw command strings parsed
from the mailcap files for a given mimeType.
|
CommandInfo[] |
getPreferredCommands(String mimeType)
Get the preferred commands for the given
mimetype.
|
createDataContentHandler, getAllCommands, getCommand, getDefaultCommandMap, getPreferredCommands, setDefaultCommandMappublic MailcapCommandMap()
public MailcapCommandMap(String fileName) throws IOException
IOExceptionpublic MailcapCommandMap(InputStream is)
public void addMailcap(String mail_cap)
public CommandInfo[] getPreferredCommands(String mimeType)
CommandMapgetPreferredCommands in class CommandMapmimeType - The mimeType name.public CommandInfo[] getAllCommands(String mimeType)
CommandMapgetAllCommands in class CommandMapmimeType - The mimeType name.public CommandInfo getCommand(String mimeType, String cmdName)
CommandMapgetCommand in class CommandMapmimeType - The name of the mime typecmdName - The command action we wish to perform.public DataContentHandler createDataContentHandler(String mimeType)
CommandMapcreateDataContentHandler in class CommandMapmimeType - The target MIME type.public String[] getMimeTypes()
getMimeTypes in class CommandMappublic String[] getNativeCommands(String mimeType)
mimeType - The target mime typeCopyright © 2013. All Rights Reserved.