public CommandInfo[] getPreferredCommands ()

Return the preferred commands for this type of data. This method calls the getPreferredCommands method in the CommandMap associated with this instance of DataHandler. This method returns an array that represents a subset of available commands. In cases where multiple commands for the MIME type represented by this DataHandler are present, the installed CommandMap chooses the appropriate commands.

Returns:  the CommandInfo objects representing the preferred commands

See also:
javax.activation.CommandMap.getPreferredCommands