javax.activation
Class MailcapCommandMap

java.lang.Object
  extended by javax.activation.CommandMap
      extended by javax.activation.MailcapCommandMap

public class MailcapCommandMap
extends CommandMap

Version:
$Rev: 376811 $ $Date: 2006-02-10 11:40:13 -0800 (Fri, 10 Feb 2006) $

Constructor Summary
MailcapCommandMap()
           
MailcapCommandMap(InputStream is)
           
MailcapCommandMap(String fileName)
           
 
Method Summary
 void addMailcap(String mail_cap)
           
 DataContentHandler createDataContentHandler(String mimeType)
           
 CommandInfo[] getAllCommands(String mimeType)
           
 CommandInfo getCommand(String mimeType, String cmdName)
           
 CommandInfo[] getPreferredCommands(String mimeType)
           
 
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

MailcapCommandMap

public MailcapCommandMap()

MailcapCommandMap

public MailcapCommandMap(String fileName)
                  throws IOException
Throws:
IOException

MailcapCommandMap

public MailcapCommandMap(InputStream is)
Method Detail

addMailcap

public void addMailcap(String mail_cap)

getPreferredCommands

public CommandInfo[] getPreferredCommands(String mimeType)
Specified by:
getPreferredCommands in class CommandMap

getAllCommands

public CommandInfo[] getAllCommands(String mimeType)
Specified by:
getAllCommands in class CommandMap

getCommand

public CommandInfo getCommand(String mimeType,
                              String cmdName)
Specified by:
getCommand in class CommandMap

createDataContentHandler

public DataContentHandler createDataContentHandler(String mimeType)
Specified by:
createDataContentHandler in class CommandMap


Copyright © 2006 Apache Software Foundation. All Rights Reserved.