📄 structureddocument.html
字号:
<BR> Extends <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A> to provide accessors appropriate for text based documents.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/document/XMLDocument.html" title="interface in net.jxta.document">XMLDocument</A></B></CODE><BR> Common interfaces for all <A HREF="../../../../net/jxta/document/StructuredTextDocument.html" title="interface in net.jxta.document"><CODE>StructuredTextDocument</CODE></A> which are implemented by XML Documents. </TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../net/jxta/document/package-summary.html">net.jxta.document</A> that return <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B>StructuredDocumentUtils.</B><B><A HREF="../../../../net/jxta/document/StructuredDocumentUtils.html#copyAsDocument(net.jxta.document.Element)">copyAsDocument</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> from)</CODE><BR> Copies the specified element or document into a standalone document of same type. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B>StructuredDocumentFactory.</B><B><A HREF="../../../../net/jxta/document/StructuredDocumentFactory.html#newStructuredDocument(net.jxta.document.MimeMediaType, java.lang.String)">newStructuredDocument</A></B>(<A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A> mimetype, java.lang.String doctype)</CODE><BR> Constructs an instance of <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A> matching the mime-type specified by the <CODE>mimetype</CODE> parameter. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B>StructuredDocumentFactory.</B><B><A HREF="../../../../net/jxta/document/StructuredDocumentFactory.html#newStructuredDocument(net.jxta.document.MimeMediaType, java.lang.String, java.lang.String)">newStructuredDocument</A></B>(<A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A> mimetype, java.lang.String doctype, java.lang.String value)</CODE><BR> Constructs an instance of <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A> matching the mime-type specified by the <CODE>mimetype</CODE> parameter. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B>StructuredDocumentFactory.</B><B><A HREF="../../../../net/jxta/document/StructuredDocumentFactory.html#newStructuredDocument(net.jxta.document.MimeMediaType, java.io.InputStream)">newStructuredDocument</A></B>(<A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A> mimetype, java.io.InputStream stream)</CODE><BR> Constructs an instance of <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A> matching the mime-type specified by the <CODE>mimetype</CODE> parameter. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B>StructuredDocumentFactory.</B><B><A HREF="../../../../net/jxta/document/StructuredDocumentFactory.html#newStructuredDocument(net.jxta.document.MimeMediaType, java.io.Reader)">newStructuredDocument</A></B>(<A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A> mimetype, java.io.Reader reader)</CODE><BR> Constructs an instance of <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A> matching the mime-type specified by the <CODE>mimetype</CODE> parameter. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B>StructuredDocumentFactory.Instantiator.</B><B><A HREF="../../../../net/jxta/document/StructuredDocumentFactory.Instantiator.html#newInstance(net.jxta.document.MimeMediaType, java.lang.String)">newInstance</A></B>(<A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A> mimeType, java.lang.String doctype)</CODE><BR> Create a new structured document of the type specified by doctype.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B>StructuredDocumentFactory.Instantiator.</B><B><A HREF="../../../../net/jxta/document/StructuredDocumentFactory.Instantiator.html#newInstance(net.jxta.document.MimeMediaType, java.lang.String, java.lang.String)">newInstance</A></B>(<A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A> mimeType, java.lang.String doctype, java.lang.String value)</CODE><BR> Create a new structured document of the type specified by doctype.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B>StructuredDocumentFactory.Instantiator.</B><B><A HREF="../../../../net/jxta/document/StructuredDocumentFactory.Instantiator.html#newInstance(net.jxta.document.MimeMediaType, java.io.InputStream)">newInstance</A></B>(<A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A> mimeType, java.io.InputStream source)</CODE><BR> Create a structured document from a stream containing an appropriately serialized instance of the same document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B>StructuredDocumentFactory.TextInstantiator.</B><B><A HREF="../../../../net/jxta/document/StructuredDocumentFactory.TextInstantiator.html#newInstance(net.jxta.document.MimeMediaType, java.io.Reader)">newInstance</A></B>(<A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A> mimeType, java.io.Reader source)</CODE><BR> Create a structured document from a Reader containing an appropriately serialized instance of the same document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B>Element.</B><B><A HREF="../../../../net/jxta/document/Element.html#getRoot()">getRoot</A></B>()</CODE><BR> Get the root Element of the hierarchy this Element belongs to.</TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../net/jxta/document/package-summary.html">net.jxta.document</A> with parameters of type <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B>StructuredDocumentUtils.</B><B><A HREF="../../../../net/jxta/document/StructuredDocumentUtils.html#copyChildren(net.jxta.document.StructuredDocument, net.jxta.document.Element, net.jxta.document.Element)">copyChildren</A></B>(<A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> intoDoc, <A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> intoElement, <A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> from)</CODE><BR> Recursively copy children elements of <code>from</code> into the the element <code>intoElement</code> of document <code>intoDoc</code>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B>StructuredDocumentUtils.</B><B><A HREF="../../../../net/jxta/document/StructuredDocumentUtils.html#copyElements(net.jxta.document.StructuredDocument, net.jxta.document.Element, net.jxta.document.Element, java.lang.Object)">copyElements</A></B>(<A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> intoDoc, <A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> intoElement, <A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> from, java.lang.Object newName)</CODE><BR> Recursively copy elements beginnging with <code>from</code> into the document identified by <code>intoDoc</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B>StructuredDocumentUtils.</B><B><A HREF="../../../../net/jxta/document/StructuredDocumentUtils.html#copyElements(net.jxta.document.StructuredDocument, net.jxta.document.Element, net.jxta.document.Element)">copyElements</A></B>(<A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> intoDoc, <A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> intoElement, <A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> from)</CODE><BR> Recursively copy elements beginnging with <code>from</code> into the document identified by <code>intoDoc</code>.</TD></TR></TABLE> <P><A NAME="net.jxta.impl.cm"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> in <A HREF="../../../../net/jxta/impl/cm/package-summary.html">net.jxta.impl.cm</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../net/jxta/impl/cm/package-summary.html">net.jxta.impl.cm</A> that return <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B>Cm.</B><B><A HREF="../../../../net/jxta/impl/cm/Cm.html#restore(java.lang.String, java.lang.String)">restore</A></B>(java.lang.String dn, java.lang.String fn)</CODE><BR> Restore a saved StructuredDocument.</TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../net/jxta/impl/cm/package-summary.html">net.jxta.impl.cm</A> with parameters of type <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B>Cm.</B><B><A HREF="../../../../net/jxta/impl/cm/Cm.html#createTmpName(net.jxta.document.StructuredDocument)">createTmpName</A></B>(<A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> doc)</CODE><BR> Generates a random file name using doc hashcode</TD></TR></TABLE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -