< prev index next >

src/java.xml/share/classes/org/xml/sax/helpers/ParserFactory.java

Print this page


   1 /*
   2  * Copyright (c) 2000, 2017, 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 factory.
  27 // http://www.saxproject.org
  28 // No warranty; no copyright -- use this as you will.
  29 // $Id: ParserFactory.java,v 1.2 2004/11/03 22:53:09 jsuttor Exp $
  30 
  31 package org.xml.sax.helpers;
  32 
  33 import jdk.xml.internal.SecuritySupport;
  34 
  35 /**
  36  * Java-specific class for dynamically loading SAX parsers.
  37  *
  38  * <blockquote>
  39  * <em>This module, both source code and documentation, is in the
  40  * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
  41  * See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
  42  * for further information.
  43  * </blockquote>
  44  *
  45  * <p><strong>Note:</strong> This class is designed to work with the now-deprecated
  46  * SAX1 {@link org.xml.sax.Parser Parser} class.  SAX2 applications should use
  47  * {@link org.xml.sax.helpers.XMLReaderFactory XMLReaderFactory} instead.</p>
  48  *
  49  * <p>ParserFactory is not part of the platform-independent definition
  50  * of SAX; it is an additional convenience class designed
  51  * specifically for Java XML application writers.  SAX applications
  52  * can use the static methods in this class to allocate a SAX parser
  53  * dynamically at run-time based either on the value of the
  54  * `org.xml.sax.parser' system property or on a string containing the class
  55  * name.</p>
  56  *
  57  * <p>Note that the application still requires an XML parser that
  58  * implements SAX1.</p>
  59  *
  60  * @deprecated This class works with the deprecated
  61  *             {@link org.xml.sax.Parser Parser}
  62  *             interface.
  63  * @since 1.4, SAX 1.0


   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.helpers;
  27 
  28 import jdk.xml.internal.SecuritySupport;
  29 
  30 /**
  31  * Java-specific class for dynamically loading SAX parsers.







  32  *
  33  * <p><strong>Note:</strong> This class is designed to work with the now-deprecated
  34  * SAX1 {@link org.xml.sax.Parser Parser} class.  SAX2 applications should use
  35  * {@link org.xml.sax.helpers.XMLReaderFactory XMLReaderFactory} instead.</p>
  36  *
  37  * <p>ParserFactory is not part of the platform-independent definition
  38  * of SAX; it is an additional convenience class designed
  39  * specifically for Java XML application writers.  SAX applications
  40  * can use the static methods in this class to allocate a SAX parser
  41  * dynamically at run-time based either on the value of the
  42  * `org.xml.sax.parser' system property or on a string containing the class
  43  * name.</p>
  44  *
  45  * <p>Note that the application still requires an XML parser that
  46  * implements SAX1.</p>
  47  *
  48  * @deprecated This class works with the deprecated
  49  *             {@link org.xml.sax.Parser Parser}
  50  *             interface.
  51  * @since 1.4, SAX 1.0


< prev index next >