< prev index next >

src/java.xml/share/classes/org/xml/sax/ext/Locator2Impl.java

Print this page


   1 /*
   2  * Copyright (c) 2004, 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 // Locator2Impl.java - extended LocatorImpl
  27 // http://www.saxproject.org
  28 // Public Domain: no warranty.
  29 // $Id: Locator2Impl.java,v 1.2 2004/11/03 22:49:08 jsuttor Exp $
  30 
  31 package org.xml.sax.ext;
  32 
  33 import org.xml.sax.Locator;
  34 import org.xml.sax.helpers.LocatorImpl;
  35 
  36 
  37 /**
  38  * SAX2 extension helper for holding additional Entity information,
  39  * implementing the {@link Locator2} interface.
  40  *
  41  * <blockquote>
  42  * <em>This module, both source code and documentation, is in the
  43  * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
  44  * </blockquote>
  45  *
  46  * <p> This is not part of core-only SAX2 distributions.</p>
  47  *
  48  * @since 1.5, SAX 2.0.2
  49  * @author David Brownell
  50  */
  51 public class Locator2Impl extends LocatorImpl implements Locator2
  52 {
  53     private String      encoding;
  54     private String      version;
  55 
  56 
  57     /**
  58      * Construct a new, empty Locator2Impl object.
  59      * This will not normally be useful, since the main purpose
  60      * of this class is to make a snapshot of an existing Locator.
  61      */
  62     public Locator2Impl () { }
  63 
  64     /**


   1 /*
   2  * Copyright (c) 2004, 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.ext;
  27 
  28 import org.xml.sax.Locator;
  29 import org.xml.sax.helpers.LocatorImpl;
  30 
  31 
  32 /**
  33  * SAX2 extension helper for holding additional Entity information,
  34  * implementing the {@link Locator2} interface.





  35  *
  36  * <p> This is not part of core-only SAX2 distributions.</p>
  37  *
  38  * @since 1.5, SAX 2.0.2
  39  * @author David Brownell
  40  */
  41 public class Locator2Impl extends LocatorImpl implements Locator2
  42 {
  43     private String      encoding;
  44     private String      version;
  45 
  46 
  47     /**
  48      * Construct a new, empty Locator2Impl object.
  49      * This will not normally be useful, since the main purpose
  50      * of this class is to make a snapshot of an existing Locator.
  51      */
  52     public Locator2Impl () { }
  53 
  54     /**


< prev index next >