< prev index next >

src/java.xml/share/classes/org/xml/sax/Parser.java

Print this page


   1 /*
   2  * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 // SAX parser interface.
  27 // http://www.saxproject.org
  28 // No warranty; no copyright -- use this as you will.
  29 // $Id: Parser.java,v 1.2 2004/11/03 22:55:32 jsuttor Exp $
  30 
  31 package org.xml.sax;
  32 
  33 import java.io.IOException;
  34 import java.util.Locale;
  35 
  36 
  37 /**
  38  * Basic interface for SAX (Simple API for XML) parsers.
  39  *
  40  * <blockquote>
  41  * <em>This module, both source code and documentation, is in the
  42  * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
  43  * See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
  44  * for further information.
  45  * </blockquote>
  46  *
  47  * <p>This was the main event supplier interface for SAX1; it has
  48  * been replaced in SAX2 by {@link org.xml.sax.XMLReader XMLReader},
  49  * which includes Namespace support and sophisticated configurability
  50  * and extensibility.</p>
  51  *
  52  * <p>All SAX1 parsers must implement this basic interface: it allows
  53  * applications to register handlers for different types of events
  54  * and to initiate a parse from a URI, or a character stream.</p>
  55  *
  56  * <p>All SAX1 parsers must also implement a zero-argument constructor
  57  * (though other constructors are also allowed).</p>
  58  *
  59  * <p>SAX1 parsers are reusable but not re-entrant: the application
  60  * may reuse a parser object (possibly with a different input source)
  61  * once the first parse has completed successfully, but it may not
  62  * invoke the parse() methods recursively within a parse.</p>
  63  *
  64  * @deprecated This interface has been replaced by the SAX2
  65  *             {@link org.xml.sax.XMLReader XMLReader}


   1 /*
   2  * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 





  26 package org.xml.sax;
  27 
  28 import java.io.IOException;
  29 import java.util.Locale;
  30 
  31 
  32 /**
  33  * Basic interface for SAX (Simple API for XML) parsers.







  34  *
  35  * <p>This was the main event supplier interface for SAX1; it has
  36  * been replaced in SAX2 by {@link org.xml.sax.XMLReader XMLReader},
  37  * which includes Namespace support and sophisticated configurability
  38  * and extensibility.</p>
  39  *
  40  * <p>All SAX1 parsers must implement this basic interface: it allows
  41  * applications to register handlers for different types of events
  42  * and to initiate a parse from a URI, or a character stream.</p>
  43  *
  44  * <p>All SAX1 parsers must also implement a zero-argument constructor
  45  * (though other constructors are also allowed).</p>
  46  *
  47  * <p>SAX1 parsers are reusable but not re-entrant: the application
  48  * may reuse a parser object (possibly with a different input source)
  49  * once the first parse has completed successfully, but it may not
  50  * invoke the parse() methods recursively within a parse.</p>
  51  *
  52  * @deprecated This interface has been replaced by the SAX2
  53  *             {@link org.xml.sax.XMLReader XMLReader}


< prev index next >