jaxp/src/javax/xml/parsers/SAXParser.java
changeset 24887 47b6d4800c64
parent 22139 f4b2aa462b46
child 25262 1fe892ba017a
equal deleted inserted replaced
24801:410bccbded9e 24887:47b6d4800c64
    67  *
    67  *
    68  * As the content is parsed by the underlying parser, methods of the
    68  * As the content is parsed by the underlying parser, methods of the
    69  * given {@link org.xml.sax.HandlerBase} or the
    69  * given {@link org.xml.sax.HandlerBase} or the
    70  * {@link org.xml.sax.helpers.DefaultHandler} are called.<p>
    70  * {@link org.xml.sax.helpers.DefaultHandler} are called.<p>
    71  *
    71  *
    72  * Implementors of this class which wrap an underlaying implementation
    72  * Implementors of this class which wrap an underlying implementation
    73  * can consider using the {@link org.xml.sax.helpers.ParserAdapter}
    73  * can consider using the {@link org.xml.sax.helpers.ParserAdapter}
    74  * class to initially adapt their SAX1 implementation to work under
    74  * class to initially adapt their SAX1 implementation to work under
    75  * this revised class.
    75  * this revised class.
    76  *
    76  *
    77  * @author <a href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor</a>
    77  * @author <a href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor</a>
    78  */
    78  */
    79 public abstract class SAXParser {
    79 public abstract class SAXParser {
    80 
    80 
    81     /**
    81     /**
    82      * <p>Protected constructor to prevent instaniation.
    82      * <p>Protected constructor to prevent instantiation.
    83      * Use {@link javax.xml.parsers.SAXParserFactory#newSAXParser()}.</p>
    83      * Use {@link javax.xml.parsers.SAXParserFactory#newSAXParser()}.</p>
    84      */
    84      */
    85     protected SAXParser () {
    85     protected SAXParser () {
    86 
    86 
    87     }
    87     }
   391         }
   391         }
   392         reader.parse(is);
   392         reader.parse(is);
   393     }
   393     }
   394 
   394 
   395     /**
   395     /**
   396      * Returns the SAX parser that is encapsultated by the
   396      * Returns the SAX parser that is encapsulated by the
   397      * implementation of this class.
   397      * implementation of this class.
   398      *
   398      *
   399      * @return The SAX parser that is encapsultated by the
   399      * @return The SAX parser that is encapsulated by the
   400      *         implementation of this class.
   400      *         implementation of this class.
   401      *
   401      *
   402      * @throws SAXException If any SAX errors occur during processing.
   402      * @throws SAXException If any SAX errors occur during processing.
   403      */
   403      */
   404     public abstract org.xml.sax.Parser getParser() throws SAXException;
   404     public abstract org.xml.sax.Parser getParser() throws SAXException;