|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.activation.CommandMap
javax.activation.MailcapCommandMap
public class MailcapCommandMap
Constructor Summary | |
---|---|
MailcapCommandMap()
|
|
MailcapCommandMap(InputStream is)
|
|
MailcapCommandMap(String fileName)
|
Method Summary | |
---|---|
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. |
Methods inherited from class javax.activation.CommandMap |
---|
createDataContentHandler, getAllCommands, getCommand, getDefaultCommandMap, getPreferredCommands, setDefaultCommandMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MailcapCommandMap()
public MailcapCommandMap(String fileName) throws IOException
IOException
public MailcapCommandMap(InputStream is)
Method Detail |
---|
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 type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |