|
||||||||
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(java.io.InputStream is)
|
|
MailcapCommandMap(java.lang.String fileName)
|
Method Summary | |
---|---|
void |
addMailcap(java.lang.String mail_cap)
|
DataContentHandler |
createDataContentHandler(java.lang.String mimeType)
Locate a DataContentHandler for the given mime type. |
CommandInfo[] |
getAllCommands(java.lang.String mimeType)
Get all available commands for the given mimetype. |
CommandInfo |
getCommand(java.lang.String mimeType,
java.lang.String cmdName)
Get the default command implementation for a give mimeType |
java.lang.String[] |
getMimeTypes()
Get all MIME types known to this command map. |
java.lang.String[] |
getNativeCommands(java.lang.String mimeType)
Return the list of raw command strings parsed from the mailcap files for a given mimeType. |
CommandInfo[] |
getPreferredCommands(java.lang.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(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public MailcapCommandMap(java.io.InputStream is)
Method Detail |
---|
public void addMailcap(java.lang.String mail_cap)
public CommandInfo[] getPreferredCommands(java.lang.String mimeType)
CommandMap
getPreferredCommands
in class CommandMap
mimeType
- The mimeType name.
public CommandInfo[] getAllCommands(java.lang.String mimeType)
CommandMap
getAllCommands
in class CommandMap
mimeType
- The mimeType name.
public CommandInfo getCommand(java.lang.String mimeType, java.lang.String cmdName)
CommandMap
getCommand
in class CommandMap
mimeType
- The name of the mime typecmdName
- The command action we wish to perform.
public DataContentHandler createDataContentHandler(java.lang.String mimeType)
CommandMap
createDataContentHandler
in class CommandMap
mimeType
- The target MIME type.
public java.lang.String[] getMimeTypes()
getMimeTypes
in class CommandMap
public java.lang.String[] getNativeCommands(java.lang.String mimeType)
mimeType
- The target mime type
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |