📄 documentserializableutilities.html
字号:
<BR> Create a child element of the specified tagName This is done by serializing and then deserializing the object (ie not very efficient)</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><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#createStructuredXmlDocument(java.lang.String, net.jxta.util.documentSerializable.DocumentSerializable)">createStructuredXmlDocument</A></B>(java.lang.String docType, <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A> documentSerializable)</CODE><BR> Creates a Structured XML Document containing the serialized object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getBoolean(net.jxta.document.Element)">getBoolean</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element)</CODE><BR> Get the value of an element converted from a String ("true" or "false")</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getBoolean(net.jxta.document.Element, java.lang.String, boolean)">getBoolean</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element, java.lang.String tagName, boolean defaultValue)</CODE><BR> Get the value of a Child Element</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getChildElement(net.jxta.document.Element, java.lang.String)">getChildElement</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element, java.lang.String tagName)</CODE><BR> Get a child element of the specified tagName This is done by serializing and then deserializing the object (ie not very efficient)</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getDocumentSerializable(net.jxta.document.Element, java.lang.Class)">getDocumentSerializable</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element, java.lang.Class clazz)</CODE><BR> Create an object from its Document Serialized components</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getDocumentSerializable(net.jxta.document.Element, net.jxta.util.documentSerializable.DocumentSerializable)">getDocumentSerializable</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element, <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A> documentSerializable)</CODE><BR> Initialize an object from its Document Serialized components</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getDocumentSerializable(net.jxta.document.Element, java.lang.String, java.lang.Class)">getDocumentSerializable</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element, java.lang.String tagName, java.lang.Class clazz)</CODE><BR> Create an object from its Document Serialized components</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getDocumentSerializableFromXml(byte[], java.lang.Class)">getDocumentSerializableFromXml</A></B>(byte[] buf, java.lang.Class clazz)</CODE><BR> Create a DocumentSerializable Object from an XML Document</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getDocumentSerializableFromXml(java.io.InputStream, java.lang.Class)">getDocumentSerializableFromXml</A></B>(java.io.InputStream in, java.lang.Class clazz)</CODE><BR> Create a DocumentSerializable Object from an XML Document</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getDocumentSerializableFromXml(java.lang.String, java.lang.Class)">getDocumentSerializableFromXml</A></B>(java.lang.String buf, java.lang.Class clazz)</CODE><BR> Create a DocumentSerializable Object from an XML Document</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getDouble(net.jxta.document.Element)">getDouble</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element)</CODE><BR> Get the value of an element converted from a String</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getDouble(net.jxta.document.Element, java.lang.String, double)">getDouble</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element, java.lang.String tagName, double defaultValue)</CODE><BR> Get the value of a Child Element</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getInt(net.jxta.document.Element)">getInt</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element)</CODE><BR> Get the value of an element converted from a String</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getInt(net.jxta.document.Element, java.lang.String, int)">getInt</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element, java.lang.String tagName, int defaultValue)</CODE><BR> Get the value of a Child Element</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getLong(net.jxta.document.Element)">getLong</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element)</CODE><BR> Get the value of an element converted from a String</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getLong(net.jxta.document.Element, java.lang.String, long)">getLong</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element, java.lang.String tagName, long defaultValue)</CODE><BR> Get the value of a Child Element</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><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getString(net.jxta.document.Element)">getString</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element)</CODE><BR> Get the value of an element as a String</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><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#getString(net.jxta.document.Element, java.lang.String, java.lang.String)">getString</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element, java.lang.String tagName, java.lang.String defaultValue)</CODE><BR> Get the value of a Child Element</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><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#printAsXmlString(net.jxta.util.documentSerializable.DocumentSerializable)">printAsXmlString</A></B>(<A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A> documentSerializable)</CODE><BR> Write a DocumentSerializable object as an XML Document to StdErr The Root TagName will be 'documentSerializable' by default</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><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#toXmlString(net.jxta.util.documentSerializable.DocumentSerializable)">toXmlString</A></B>(<A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A> documentSerializable)</CODE><BR> Convert a DocumentSerializable object to its XML representation as a String The Root TagName will be 'documentSerializable' by default</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><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#toXmlString(net.jxta.util.documentSerializable.DocumentSerializable, java.lang.String)">toXmlString</A></B>(<A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A> documentSerializable, java.lang.String rootTagName)</CODE><BR> Convert a DocumentSerializable object to its XML representation as a String The Root TagName will be 'documentSerializable' by default</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><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#writeAsXmlString(java.io.OutputStream, net.jxta.util.documentSerializable.DocumentSerializable)">writeAsXmlString</A></B>(java.io.OutputStream out, <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A> documentSerializable)</CODE><BR> Write a DocumentSerializable object as an XML Document to a Stream The Root TagName will be 'documentSerializable' by default</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><A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializableUtilities.html#writeAsXmlString(java.io.OutputStream, net.jxta.util.documentSerializable.DocumentSerializable, java.lang.String)">writeAsXmlString</A></B>(java.io.OutputStream out, <A HREF="../../../../net/jxta/util/documentSerializable/DocumentSerializable.html" title="interface in net.jxta.util.documentSerializable">DocumentSerializable</A> documentSerializable,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -