Code example for Set

Methods: add

0
{ 
 
  static final Set FEATURE_NAMES = new HashSet();
  static 
  { 
    FEATURE_NAMES.add("http://xml.org/sax/features/namespaces");
    FEATURE_NAMES.add("http://xml.org/sax/features/string-interning");
    FEATURE_NAMES.add("http://xml.org/sax/features/validation");
  } 
 
  Map features = new HashMap();
 
  public javax.xml.parsers.SAXParser newSAXParser()
    throws ParserConfigurationException, SAXException 
  { 
    boolean validating = isValidating();
    boolean namespaceAware = isNamespaceAware();
    boolean xIncludeAware = isXIncludeAware();
    SAXParser ret = new SAXParser(validating, namespaceAware, xIncludeAware);
    for (Iterator i = features.entrySet().iterator(); i.hasNext(); )
      {