Home | History | Annotate | Download | only in helpers

Lines Matching refs:Parser

1 // SAX parser factory.
8 import org.xml.sax.Parser;
22 * SAX1 {@link org.xml.sax.Parser Parser} class. SAX2 applications should use
28 * can use the static methods in this class to allocate a SAX parser
30 * `org.xml.sax.parser' system property or on a string containing the class
33 * <p>Note that the application still requires an XML parser that
37 * {@link org.xml.sax.Parser Parser}
56 * Create a new SAX parser using the `org.xml.sax.parser' system property.
59 * {@link org.xml.sax.Parser Parser} interface.</p>
61 * @return the newly created parser.
64 * for the `org.xml.sax.parser' system property.
65 * @exception java.lang.ClassNotFoundException The SAX parser
67 * @exception IllegalAccessException The SAX parser class was
70 * @exception InstantiationException The SAX parser class was
72 * @exception java.lang.ClassCastException The SAX parser class
74 * org.xml.sax.Parser.
76 * @see org.xml.sax.Parser
78 public static Parser makeParser ()
85 String className = System.getProperty("org.xml.sax.parser");
87 throw new NullPointerException("No value for sax.parser property");
95 * Create a new SAX parser object using the class name provided.
98 * {@link org.xml.sax.Parser Parser} interface.</p>
100 * @return the newly created parser.
103 * SAX parser class.
104 * @exception java.lang.ClassNotFoundException The SAX parser
106 * @exception IllegalAccessException The SAX parser class was
109 * @exception InstantiationException The SAX parser class was
111 * @exception java.lang.ClassCastException The SAX parser class
113 * org.xml.sax.Parser.
115 * @see org.xml.sax.Parser
117 public static Parser makeParser (String className)
123 return (Parser) NewInstance.newInstance (