📄 xmldocument.html
字号:
<HR><A NAME="getAdapterNode()"><!-- --></A><H3>getAdapterNode</H3><PRE>public <A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> <B>getAdapterNode</B>()</PRE><DL><DD>Returns the AdapterNode object for the root of the XML document.<P><DD><DL><DT><B>Returns:</B><DD>the root node as an AdapterNode</DL></DD></DL><HR><A NAME="newAdapterNode(net.sourceforge.jsxe.dom.AdapterNode, org.w3c.dom.Node)"><!-- --></A><H3>newAdapterNode</H3><PRE>public <A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> <B>newAdapterNode</B>(<A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> parent, org.w3c.dom.Node node)</PRE><DL><DD>Factory method that creates a new AdapterNode object wrapping the Node object and AdapterNode object wrapping the Node's parent Node object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - the AdapterNode for the parent of the new node<DD><CODE>node</CODE> - the Node object that the new AdapterNode should wrap<DT><B>Returns:</B><DD>the new AdapterNode object</DL></DD></DL><HR><A NAME="newAdapterNode(net.sourceforge.jsxe.dom.AdapterNode, java.lang.String, java.lang.String, short)"><!-- --></A><H3>newAdapterNode</H3><PRE>public <A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> <B>newAdapterNode</B>(<A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> parent, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value, short type)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getText(int, int)"><!-- --></A><H3>getText</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getText</B>(int start, int length) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Gets the text at a specified location in the document. This method method should be used sparingly as changes to the properties of this document or the tree structure could change the location of text within the document.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - the starting index of the text to retrieve<DD><CODE>length</CODE> - the length of the text needed<DT><B>Returns:</B><DD>the text requested<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="getLength()"><!-- --></A><H3>getLength</H3><PRE>public int <B>getLength</B>()</PRE><DL><DD>Gets the total number of characters in the document.<P><DD><DL><DT><B>Returns:</B><DD>the length of the document</DL></DD></DL><HR><A NAME="isWellFormed()"><!-- --></A><H3>isWellFormed</H3><PRE>public boolean <B>isWellFormed</B>() throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Indicates if the document is well formed.<P><DD><DL><DT><B>Returns:</B><DD>true of the document is well formed<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if there was a problem checking the wellformedness</DL></DD></DL><HR><A NAME="serialize(java.io.OutputStream)"><!-- --></A><H3>serialize</H3><PRE>public void <B>serialize</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A> out) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/UnsupportedEncodingException.html" title="class or interface in java.io">UnsupportedEncodingException</A></PRE><DL><DD>Writes the XML document to the output stream specified.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream to write the document to.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if there was a problem writing the document<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/UnsupportedEncodingException.html" title="class or interface in java.io">UnsupportedEncodingException</A></CODE> - if the encoding specified in the properties is not supported.</DL></DD></DL><HR><A NAME="serializeNodeToString(net.sourceforge.jsxe.dom.AdapterNode)"><!-- --></A><H3>serializeNodeToString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>serializeNodeToString</B>(<A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> node)</PRE><DL><DD>Serializes a child node to a string using the properties specified in this XMLDocument object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the node to serialize<DT><B>Returns:</B><DD>the serialized version of the node given</DL></DD></DL><HR><A NAME="setEntityResolver(org.xml.sax.EntityResolver)"><!-- --></A><H3>setEntityResolver</H3><PRE>public void <B>setEntityResolver</B>(org.xml.sax.EntityResolver resolver)</PRE><DL><DD>Sets the EntityResolver object that is used when resolving external entities.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>resolver</CODE> - the entity resolver</DL></DD></DL><HR><A NAME="insertText(int, java.lang.String)"><!-- --></A><H3>insertText</H3><PRE>public void <B>insertText</B>(int offset, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> text) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Inserts text into the document at the specified location<P><DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - the character offset where the text should be inserted<DD><CODE>text</CODE> - the text to insert<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if the text could not be inserted</DL></DD></DL><HR><A NAME="removeText(int, int)"><!-- --></A><H3>removeText</H3><PRE>public void <B>removeText</B>(int offset, int length) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Removes text at the specifed character offset.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - the character offset where the text is removed form<DD><CODE>length</CODE> - the length of the text segment to remove<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if the text could not be removed</DL></DD></DL><HR><A NAME="addXMLDocumentListener(net.sourceforge.jsxe.dom.XMLDocumentListener)"><!-- --></A><H3>addXMLDocumentListener</H3><PRE>public void <B>addXMLDocumentListener</B>(<A HREF="../../../../net/sourceforge/jsxe/dom/XMLDocumentListener.html" title="interface in net.sourceforge.jsxe.dom">XMLDocumentListener</A> listener)</PRE><DL><DD>Registers a change listener with the XMLDocument<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to register with this document</DL></DD></DL><HR><A NAME="removeXMLDocumentListener(net.sourceforge.jsxe.dom.XMLDocumentListener)"><!-- --></A><H3>removeXMLDocumentListener</H3><PRE>public void <B>removeXMLDocumentListener</B>(<A HREF="../../../../net/sourceforge/jsxe/dom/XMLDocumentListener.html" title="interface in net.sourceforge.jsxe.dom">XMLDocumentListener</A> listener)</PRE><DL><DD>Unregisters a change listener from this document<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to unregister</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=3 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="../../../../net/sourceforge/jsxe/dom/DOMSerializerConfiguration.html" title="class in net.sourceforge.jsxe.dom"><B>PREV CLASS</B></A> <A HREF="../../../../net/sourceforge/jsxe/dom/XMLDocumentFactory.html" title="class in net.sourceforge.jsxe.dom"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="XMLDocument.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 | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -