⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 documentserializableutilities.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<A NAME="toXmlString(net.jxta.util.documentSerializable.DocumentSerializable)"><!-- --></A><H3>toXmlString</H3><PRE>public static java.lang.String <B>toXmlString</B>(<A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A>&nbsp;documentSerializable)                                    throws <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></PRE><DL><DD>Convert a DocumentSerializable object to its XML representation as a String    The Root TagName will be 'documentSerializable' by default<P><DD><DL><DT><B>Parameters:</B><DD><CODE>documentSerializable</CODE> - The Object to be converted to an XML Document<DT><B>Returns:</B><DD>The String representation of an XML Document<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></CODE> - if Unable to serialize object.</DL></DD></DL><HR><A NAME="toXmlString(net.jxta.util.documentSerializable.DocumentSerializable, java.lang.String)"><!-- --></A><H3>toXmlString</H3><PRE>public static java.lang.String <B>toXmlString</B>(<A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A>&nbsp;documentSerializable,                                           java.lang.String&nbsp;rootTagName)                                    throws <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></PRE><DL><DD>Convert a DocumentSerializable object to its XML representation as a String    The Root TagName will be 'documentSerializable' by default<P><DD><DL><DT><B>Parameters:</B><DD><CODE>documentSerializable</CODE> - The Object to be converted to an XML Document<DT><B>Returns:</B><DD>The String representation of an XML Document<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></CODE> - if Unable to serialize object.</DL></DD></DL><HR><A NAME="writeAsXmlString(java.io.OutputStream, net.jxta.util.documentSerializable.DocumentSerializable)"><!-- --></A><H3>writeAsXmlString</H3><PRE>public static void <B>writeAsXmlString</B>(java.io.OutputStream&nbsp;out,                                    <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A>&nbsp;documentSerializable)                             throws java.io.IOException,                                    <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></PRE><DL><DD>Write a DocumentSerializable object as an XML Document to a Stream    The Root TagName will be 'documentSerializable' by default<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - The Stream to write the document to<DD><CODE>documentSerializable</CODE> - The Object to be converted to an XML Document<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></CODE> - if Unable to serialize object.<DD><CODE>java.io.IOException</CODE> - if I/O error while writing</DL></DD></DL><HR><A NAME="writeAsXmlString(java.io.OutputStream, net.jxta.util.documentSerializable.DocumentSerializable, java.lang.String)"><!-- --></A><H3>writeAsXmlString</H3><PRE>public static void <B>writeAsXmlString</B>(java.io.OutputStream&nbsp;out,                                    <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A>&nbsp;documentSerializable,                                    java.lang.String&nbsp;rootTagName)                             throws java.io.IOException,                                    <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></PRE><DL><DD>Write a DocumentSerializable object as an XML Document to a Stream    The Root TagName will be 'documentSerializable' by default<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - The Stream to write the document to<DD><CODE>documentSerializable</CODE> - The Object to be converted to an XML Document<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></CODE> - if Unable to serialize object.<DD><CODE>java.io.IOException</CODE> - if I/O error while writing</DL></DD></DL><HR><A NAME="printAsXmlString(net.jxta.util.documentSerializable.DocumentSerializable)"><!-- --></A><H3>printAsXmlString</H3><PRE>public static void <B>printAsXmlString</B>(<A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A>&nbsp;documentSerializable)</PRE><DL><DD>Write a DocumentSerializable object as an XML Document to StdErr    The Root TagName will be 'documentSerializable' by default<P><DD><DL><DT><B>Parameters:</B><DD><CODE>documentSerializable</CODE> - The Object to be converted to an XML Document</DL></DD></DL><HR><A NAME="getDocumentSerializableFromXml(java.lang.String, java.lang.Class)"><!-- --></A><H3>getDocumentSerializableFromXml</H3><PRE>public static <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A> <B>getDocumentSerializableFromXml</B>(java.lang.String&nbsp;buf,                                                                  java.lang.Class&nbsp;clazz)                                                           throws <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></PRE><DL><DD>Create a DocumentSerializable Object from an XML Document<P><DD><DL><DT><B>Parameters:</B><DD><CODE>buf</CODE> - The XML document contained in a String<DD><CODE>clazz</CODE> - The Class of the resurrected object (must implement DocumentSerializable and have a public no-arg constructor)<DT><B>Returns:</B><DD>An object of type 'clazz'<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></CODE> - if Unable to parse object.</DL></DD></DL><HR><A NAME="getDocumentSerializableFromXml(byte[], java.lang.Class)"><!-- --></A><H3>getDocumentSerializableFromXml</H3><PRE>public static <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A> <B>getDocumentSerializableFromXml</B>(byte[]&nbsp;buf,                                                                  java.lang.Class&nbsp;clazz)                                                           throws <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></PRE><DL><DD>Create a DocumentSerializable Object from an XML Document<P><DD><DL><DT><B>Parameters:</B><DD><CODE>buf</CODE> - The XML document contained in a byte buffer<DD><CODE>clazz</CODE> - The Class of the resurrected object (must implement DocumentSerializable and have a public no-arg constructor)<DT><B>Returns:</B><DD>An object of type 'clazz'<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></CODE> - if Unable to parse object.</DL></DD></DL><HR><A NAME="getDocumentSerializableFromXml(java.io.InputStream, java.lang.Class)"><!-- --></A><H3>getDocumentSerializableFromXml</H3><PRE>public static <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A> <B>getDocumentSerializableFromXml</B>(java.io.InputStream&nbsp;in,                                                                  java.lang.Class&nbsp;clazz)                                                           throws <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></PRE><DL><DD>Create a DocumentSerializable Object from an XML Document<P><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - The Stream containing an XML Document to be read<DD><CODE>clazz</CODE> - The Class of the resurrected object (must implement DocumentSerializable and have a public no-arg constructor)<DT><B>Returns:</B><DD>An object of type 'clazz'<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializationException.html" title="class in net.jxta.util.documentSerializable">DocumentSerializationException</A></CODE> - if Unable to parse object.</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DocumentSerializableUtilities.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="DocumentSerializableUtilities.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -