<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_18) on Sun Jun 12 19:55:32 JST 2011 --> <TITLE> Locator2Impl (JAXP 1.4, DOM3, SAX2.0.2(sax2r3), StAX 1.0, SAC 1.3) </TITLE> <META NAME="date" CONTENT="2011-06-12"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Locator2Impl (JAXP 1.4, DOM3, SAX2.0.2(sax2r3), StAX 1.0, SAC 1.3)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/xml/sax/ext/Locator2.html" title="interface in org.xml.sax.ext"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/xml/sax/ext/Locator2Impl.html" target="_top"><B>FRAMES</B></A> <A HREF="Locator2Impl.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> org.xml.sax.ext</FONT> <BR> Class Locator2Impl</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/xml/sax/helpers/LocatorImpl.html" title="class in org.xml.sax.helpers">org.xml.sax.helpers.LocatorImpl</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.xml.sax.ext.Locator2Impl</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/xml/sax/ext/Locator2.html" title="interface in org.xml.sax.ext">Locator2</A>, <A HREF="../../../../org/xml/sax/Locator.html" title="interface in org.xml.sax">Locator</A></DD> </DL> <HR> <DL> <DT><PRE>public class <B>Locator2Impl</B><DT>extends <A HREF="../../../../org/xml/sax/helpers/LocatorImpl.html" title="class in org.xml.sax.helpers">LocatorImpl</A><DT>implements <A HREF="../../../../org/xml/sax/ext/Locator2.html" title="interface in org.xml.sax.ext">Locator2</A></DL> </PRE> <P> SAX2 extension helper for holding additional Entity information, implementing the <A HREF="../../../../org/xml/sax/ext/Locator2.html" title="interface in org.xml.sax.ext"><CODE>Locator2</CODE></A> 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> <P> <P> <DL> <DT><B>Since:</B></DT> <DD>SAX 2.0.2</DD> <DT><B>Version:</B></DT> <DD>TBS</DD> <DT><B>Author:</B></DT> <DD>David Brownell</DD> </DL> <HR> <P> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../org/xml/sax/ext/Locator2Impl.html#Locator2Impl()">Locator2Impl</A></B>()</CODE> <BR> Construct a new, empty Locator2Impl object.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../org/xml/sax/ext/Locator2Impl.html#Locator2Impl(org.xml.sax.Locator)">Locator2Impl</A></B>(<A HREF="../../../../org/xml/sax/Locator.html" title="interface in org.xml.sax">Locator</A> locator)</CODE> <BR> Copy an existing Locator or Locator2 object.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../org/xml/sax/ext/Locator2Impl.html#getEncoding()">getEncoding</A></B>()</CODE> <BR> Returns the current value of the encoding property.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../org/xml/sax/ext/Locator2Impl.html#getXMLVersion()">getXMLVersion</A></B>()</CODE> <BR> Returns the current value of the version property.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../org/xml/sax/ext/Locator2Impl.html#setEncoding(java.lang.String)">setEncoding</A></B>(java.lang.String encoding)</CODE> <BR> Assigns the current value of the encoding property.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../org/xml/sax/ext/Locator2Impl.html#setXMLVersion(java.lang.String)">setXMLVersion</A></B>(java.lang.String version)</CODE> <BR> Assigns the current value of the version property.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_org.xml.sax.helpers.LocatorImpl"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class org.xml.sax.helpers.<A HREF="../../../../org/xml/sax/helpers/LocatorImpl.html" title="class in org.xml.sax.helpers">LocatorImpl</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../org/xml/sax/helpers/LocatorImpl.html#getColumnNumber()">getColumnNumber</A>, <A HREF="../../../../org/xml/sax/helpers/LocatorImpl.html#getLineNumber()">getLineNumber</A>, <A HREF="../../../../org/xml/sax/helpers/LocatorImpl.html#getPublicId()">getPublicId</A>, <A HREF="../../../../org/xml/sax/helpers/LocatorImpl.html#getSystemId()">getSystemId</A>, <A HREF="../../../../org/xml/sax/helpers/LocatorImpl.html#setColumnNumber(int)">setColumnNumber</A>, <A HREF="../../../../org/xml/sax/helpers/LocatorImpl.html#setLineNumber(int)">setLineNumber</A>, <A HREF="../../../../org/xml/sax/helpers/LocatorImpl.html#setPublicId(java.lang.String)">setPublicId</A>, <A HREF="../../../../org/xml/sax/helpers/LocatorImpl.html#setSystemId(java.lang.String)">setSystemId</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_org.xml.sax.Locator"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface org.xml.sax.<A HREF="../../../../org/xml/sax/Locator.html" title="interface in org.xml.sax">Locator</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../org/xml/sax/Locator.html#getColumnNumber()">getColumnNumber</A>, <A HREF="../../../../org/xml/sax/Locator.html#getLineNumber()">getLineNumber</A>, <A HREF="../../../../org/xml/sax/Locator.html#getPublicId()">getPublicId</A>, <A HREF="../../../../org/xml/sax/Locator.html#getSystemId()">getSystemId</A></CODE></TD> </TR> </TABLE> <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="Locator2Impl()"><!-- --></A><H3> Locator2Impl</H3> <PRE> public <B>Locator2Impl</B>()</PRE> <DL> <DD>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. <P> </DL> <HR> <A NAME="Locator2Impl(org.xml.sax.Locator)"><!-- --></A><H3> Locator2Impl</H3> <PRE> public <B>Locator2Impl</B>(<A HREF="../../../../org/xml/sax/Locator.html" title="interface in org.xml.sax">Locator</A> locator)</PRE> <DL> <DD>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>. <P> <DL> <DT><B>Parameters:</B><DD><CODE>locator</CODE> - The existing Locator object.</DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="getXMLVersion()"><!-- --></A><H3> getXMLVersion</H3> <PRE> public java.lang.String <B>getXMLVersion</B>()</PRE> <DL> <DD>Returns the current value of the version property. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/xml/sax/ext/Locator2.html#getXMLVersion()">getXMLVersion</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/ext/Locator2.html" title="interface in org.xml.sax.ext">Locator2</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Identifier for the XML version being used to interpret the entity's text, or null if that information is not yet available in the current parsing state.<DT><B>See Also:</B><DD><A HREF="../../../../org/xml/sax/ext/Locator2Impl.html#setXMLVersion(java.lang.String)"><CODE>setXMLVersion(java.lang.String)</CODE></A></DL> </DD> </DL> <HR> <A NAME="getEncoding()"><!-- --></A><H3> getEncoding</H3> <PRE> public java.lang.String <B>getEncoding</B>()</PRE> <DL> <DD>Returns the current value of the encoding property. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/xml/sax/ext/Locator2.html#getEncoding()">getEncoding</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/ext/Locator2.html" title="interface in org.xml.sax.ext">Locator2</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Name of the character encoding being used to interpret the entity's text, or null if this was not provided for a character stream passed through an InputSource or is otherwise not yet available in the current parsing state.<DT><B>See Also:</B><DD><A HREF="../../../../org/xml/sax/ext/Locator2Impl.html#setEncoding(java.lang.String)"><CODE>setEncoding(java.lang.String)</CODE></A></DL> </DD> </DL> <HR> <A NAME="setXMLVersion(java.lang.String)"><!-- --></A><H3> setXMLVersion</H3> <PRE> public void <B>setXMLVersion</B>(java.lang.String version)</PRE> <DL> <DD>Assigns the current value of the version property. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>version</CODE> - the new "version" value<DT><B>See Also:</B><DD><A HREF="../../../../org/xml/sax/ext/Locator2Impl.html#getXMLVersion()"><CODE>getXMLVersion()</CODE></A></DL> </DD> </DL> <HR> <A NAME="setEncoding(java.lang.String)"><!-- --></A><H3> setEncoding</H3> <PRE> public void <B>setEncoding</B>(java.lang.String encoding)</PRE> <DL> <DD>Assigns the current value of the encoding property. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>encoding</CODE> - the new "encoding" value<DT><B>See Also:</B><DD><A HREF="../../../../org/xml/sax/ext/Locator2Impl.html#getEncoding()"><CODE>getEncoding()</CODE></A></DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/xml/sax/ext/Locator2.html" title="interface in org.xml.sax.ext"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/xml/sax/ext/Locator2Impl.html" target="_top"><B>FRAMES</B></A> <A HREF="Locator2Impl.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>