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, setDefaultCommandMap
public MailcapCommandMap()
public MailcapCommandMap(String fileName) throws IOException
IOException
public MailcapCommandMap(InputStream is)
public void addMailcap(String mail_cap)
public CommandInfo[] getPreferredCommands(String mimeType)
CommandMap
getPreferredCommands
in class CommandMap
mimeType
- The mimeType name.public CommandInfo[] getAllCommands(String mimeType)
CommandMap
getAllCommands
in class CommandMap
mimeType
- The mimeType name.public CommandInfo getCommand(String mimeType, String cmdName)
CommandMap
getCommand
in class CommandMap
mimeType
- The name of the mime typecmdName
- The command action we wish to perform.public DataContentHandler createDataContentHandler(String mimeType)
CommandMap
createDataContentHandler
in class CommandMap
mimeType
- The target MIME type.public String[] getMimeTypes()
getMimeTypes
in class CommandMap
public String[] getNativeCommands(String mimeType)
mimeType
- The target mime typeCopyright © 2013. All Rights Reserved.