|
Copyright 2012-02-25 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.activation.CommandMap
ch.randelshofer.activation.BasicCommandMap
ch.randelshofer.activation.HierarchicCommandMap
public class HierarchicCommandMap
This command map allows the specification of generic commands, that can be applied to multiple mime types. e.g When commands are queried for the file type "audio/basic", this map returns all the commands for the file types "audio/basic", "audio/*" and "* /*".
| Constructor Summary | |
|---|---|
HierarchicCommandMap()
|
|
| Method Summary | |
|---|---|
javax.activation.DataContentHandler |
createDataContentHandler(java.lang.String mimeType)
Locate a DataContentHandler that corresponds to the MIME type. |
javax.activation.CommandInfo[] |
getAllCommands(java.lang.String mimeType)
Get all the available commands for this type. |
javax.activation.CommandInfo |
getCommand(java.lang.String mimeType,
java.lang.String cmdName)
Get the default command corresponding to the MIME type. |
javax.activation.CommandInfo[] |
getPreferredCommands(java.lang.String mimeType)
Get the preferred command list from a MIME Type. |
| Methods inherited from class ch.randelshofer.activation.BasicCommandMap |
|---|
addCommand, addCommandInfo, addCommands |
| Methods inherited from class javax.activation.CommandMap |
|---|
createDataContentHandler, getAllCommands, getCommand, getDefaultCommandMap, getMimeTypes, getPreferredCommands, setDefaultCommandMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HierarchicCommandMap()
| Method Detail |
|---|
public javax.activation.CommandInfo[] getPreferredCommands(java.lang.String mimeType)
getPreferredCommands in class BasicCommandMappublic javax.activation.CommandInfo[] getAllCommands(java.lang.String mimeType)
getAllCommands in class BasicCommandMap
public javax.activation.CommandInfo getCommand(java.lang.String mimeType,
java.lang.String cmdName)
getCommand in class BasicCommandMappublic javax.activation.DataContentHandler createDataContentHandler(java.lang.String mimeType)
createDataContentHandler in class BasicCommandMap
|
Copyright 2012-02-25 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||