API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.activation. MailcapCommandMap View Source
Author(s)
Bart Calder
Bill Shannon
Since
1.6
Version
Serial
Hierarchy
 Object
      CommandMap
          MailcapCommandMap
Implements
Subclasses
Description
public class MailcapCommandMap
  MailcapCommandMap extends the CommandMap abstract class.
See also:   
Constructors
public MailcapCommandMap ()
The default Constructor.
public MailcapCommandMap (InputStream is)
  Constructor that allows the caller to specify an InputStream containing a mailcap file.
public MailcapCommandMap (String fileName) throws IOException
  Constructor that allows the caller to specify the path of a mailcap file.
Methods
Hide/Show inherited methods
publicsynchronized void addMailcap (String mail_cap)
  Add entries to the registry.
publicsynchronized DataContentHandler createDataContentHandler (String mimeType) [Specified in CommandMap]
  Return the DataContentHandler for the specified MIME type.
public DataContentHandler createDataContentHandler (String mimeType, DataSource ds) [Inherited From CommandMap]
  Locate a DataContentHandler that corresponds to the MIME type.
publicsynchronized CommandInfo getAllCommands (String mimeType) [Specified in CommandMap]
  Get all the available commands in all mailcap files known to this instance of MailcapCommandMap for this MIME type.
public CommandInfo getAllCommands (String mimeType, DataSource ds) [Inherited From CommandMap]
  Get all the available commands for this type.
publicsynchronized CommandInfo getCommand (String mimeType, String cmdName) [Specified in CommandMap]
  Get the command corresponding to cmdName for the MIME type.
public CommandInfo getCommand (String mimeType, String cmdName, DataSource ds) [Inherited From CommandMap]
  Get the default command corresponding to the MIME type.
publicstatic CommandMap getDefaultCommandMap () [Inherited From CommandMap]
  Get the default CommandMap.
publicsynchronized String getMimeTypes () [Overrides CommandMap]
  Get all the MIME types known to this command map.
publicsynchronized String getNativeCommands (String mimeType)
  Get the native commands for the given MIME type.
publicsynchronized CommandInfo getPreferredCommands (String mimeType) [Specified in CommandMap]
  Get the preferred command list for a MIME Type.
public CommandInfo getPreferredCommands (String mimeType, DataSource ds) [Inherited From CommandMap]
  Get the preferred command list from a MIME Type.
publicstatic void setDefaultCommandMap (CommandMap commandMap) [Inherited From CommandMap]
  Set the default CommandMap.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar