|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.activation.CommandMap
javax.activation.MailcapCommandMap
Implementation of a command map using a mailcap
file (RFC
1524). Mailcap files are searched for in the following places:
Constructor Summary | |
MailcapCommandMap()
Default constructor. |
|
MailcapCommandMap(java.io.InputStream is)
Constructor specifying an input stream. |
|
MailcapCommandMap(java.lang.String fileName)
Constructor specifying a filename. |
Method Summary | |
void |
addMailcap(java.lang.String mail_cap)
Adds entries programmatically to the registry. |
DataContentHandler |
createDataContentHandler(java.lang.String mimeType)
Returns the DCH for the specified MIME type. |
CommandInfo[] |
getAllCommands(java.lang.String mimeType)
Returns all commands for the given MIME type. |
CommandInfo |
getCommand(java.lang.String mimeType,
java.lang.String cmdName)
Returns the command with the specified name for the given MIME type. |
CommandInfo[] |
getPreferredCommands(java.lang.String mimeType)
Returns the list of preferred commands for a given MIME type. |
Methods inherited from class javax.activation.CommandMap |
getDefaultCommandMap, 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
fileName
- the name of the file to read mailcap entries frompublic MailcapCommandMap(java.io.InputStream is)
is
- the input stream to read mailcap entries fromMethod Detail |
public CommandInfo[] getPreferredCommands(java.lang.String mimeType)
getPreferredCommands
in class CommandMap
mimeType
- the MIME typepublic CommandInfo[] getAllCommands(java.lang.String mimeType)
getAllCommands
in class CommandMap
mimeType
- the MIME typepublic CommandInfo getCommand(java.lang.String mimeType, java.lang.String cmdName)
getCommand
in class CommandMap
mimeType
- the MIME typecmdName
- the command verbpublic void addMailcap(java.lang.String mail_cap)
mail_cap
- a mailcap stringpublic DataContentHandler createDataContentHandler(java.lang.String mimeType)
createDataContentHandler
in class CommandMap
mimeType
- the MIME type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |