Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
xml-commons External Source Code Files
xml-commons External Source Code Files are provided in the source package file, xml-commons-external-1.4.01-src.zip.
You can download xml-commons-external-1.4.01-src.zip as described in the previous tutorial
You can also browse xml-commons External Source Code below:
✍: FYIcenter
⏎ org/xml/sax/ext/Locator2Impl.java
// Locator2Impl.java - extended LocatorImpl // http://www.saxproject.org // Public Domain: no warranty. // $Id: Locator2Impl.java 226184 2005-04-08 10:53:24Z neeraj $ package org.xml.sax.ext; import org.xml.sax.Locator; import org.xml.sax.helpers.LocatorImpl; /** * SAX2 extension helper for holding additional Entity information, * implementing the {@link Locator2} interface. * * <blockquote> * <em>This module, both source code and documentation, is in the * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em> * </blockquote> * * <p> This is not part of core-only SAX2 distributions.</p> * * @since SAX 2.0.2 * @author David Brownell * @version TBS */ public class Locator2Impl extends LocatorImpl implements Locator2 { private String encoding; private String version; /** * Construct a new, empty Locator2Impl object. * This will not normally be useful, since the main purpose * of this class is to make a snapshot of an existing Locator. */ public Locator2Impl () { } /** * Copy an existing Locator or Locator2 object. * If the object implements Locator2, values of the * <em>encoding</em> and <em>version</em>strings are copied, * otherwise they set to <em>null</em>. * * @param locator The existing Locator object. */ public Locator2Impl (Locator locator) { super (locator); if (locator instanceof Locator2) { Locator2 l2 = (Locator2) locator; version = l2.getXMLVersion (); encoding = l2.getEncoding (); } } //////////////////////////////////////////////////////////////////// // Locator2 method implementations //////////////////////////////////////////////////////////////////// /** * Returns the current value of the version property. * * @see #setXMLVersion */ public String getXMLVersion () { return version; } /** * Returns the current value of the encoding property. * * @see #setEncoding */ public String getEncoding () { return encoding; } //////////////////////////////////////////////////////////////////// // Setters //////////////////////////////////////////////////////////////////// /** * Assigns the current value of the version property. * * @param version the new "version" value * @see #getXMLVersion */ public void setXMLVersion (String version) { this.version = version; } /** * Assigns the current value of the encoding property. * * @param encoding the new "encoding" value * @see #getEncoding */ public void setEncoding (String encoding) { this.encoding = encoding; } }
⏎ org/xml/sax/ext/Locator2Impl.java
⇒ Donwload xml-commons-external-1.3.05-bin.zip
⇐ Download and Install xml-commons External Source Package
2009-01-25, 32663👍, 0💬
Popular Posts:
How to download and install Apache XMLBeans Source Package? The source package contains Java source ...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
Apache Avalon began in 1999 as the Java Apache Server Framework and in late 2002 separated from the ...
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
How to read XML document from socket connections with the socket\DelayedInput.java provided in the A...