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

📄 structureddocumentfactory.instantiator.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new structured document of the type specified by doctype.</TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getSupportedMimeTypes()"><!-- --></A><H3>getSupportedMimeTypes</H3><PRE>public <A HREF="../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A>[] <B>getSupportedMimeTypes</B>()</PRE><DL><DD>Returns the MIME Media types supported by this this Document per <a href="http://www.ietf.org/rfc/rfc2046.txt">IETF RFC 2046 <i>MIME : Media Types</i></a>. <p/>JXTA does not currently support the 'Multipart' or 'Message' media types.<P><DD><DL><DT><B>Returns:</B><DD>An array of MimeMediaType objects containing the MIME Media Type  for this Document.</DL></DD></DL><HR><A NAME="getSupportedFileExtensions()"><!-- --></A><H3>getSupportedFileExtensions</H3><PRE>public <A HREF="../../../net/jxta/document/StructuredDocumentFactory.Instantiator.ExtensionMapping.html" title="class in net.jxta.document">StructuredDocumentFactory.Instantiator.ExtensionMapping</A>[] <B>getSupportedFileExtensions</B>()</PRE><DL><DD>Returns the mapping of file extension and mime-types for this type of document. The default extension is mapped to the 'null' mime-type and should only be used if no other mapping matches.<P><DD><DL><DT><B>Returns:</B><DD>An array of objects containing file extensions</DL></DD></DL><HR><A NAME="newInstance(net.jxta.document.MimeMediaType, java.lang.String)"><!-- --></A><H3>newInstance</H3><PRE>public <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> <B>newInstance</B>(<A HREF="../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A>&nbsp;mimeType,                                      java.lang.String&nbsp;doctype)</PRE><DL><DD>Create a new structured document of the type specified by doctype.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mimeType</CODE> - The mimetype to be associated with this instance.  the base type must be one of the types returned by  <tt>getSupportedMimeTypes</tt>. Some implementations may accept  parameters in the params section of the mimetype.<DD><CODE>doctype</CODE> - Type for the base node of the document.<DT><B>Returns:</B><DD>StructuredDocument instance.</DL></DD></DL><HR><A NAME="newInstance(net.jxta.document.MimeMediaType, java.lang.String, java.lang.String)"><!-- --></A><H3>newInstance</H3><PRE>public <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> <B>newInstance</B>(<A HREF="../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A>&nbsp;mimeType,                                      java.lang.String&nbsp;doctype,                                      java.lang.String&nbsp;value)</PRE><DL><DD>Create a new structured document of the type specified by doctype.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mimeType</CODE> - The mimetype to be associated with this instance.  The base type must be one of the types returned by  <tt>getSupportedMimeTypes</tt>. Some implementations may accept  parameters in the params section of the mimetype.<DD><CODE>doctype</CODE> - Type for the base node of the document.<DD><CODE>value</CODE> - value for the base node of the document.<DT><B>Returns:</B><DD><A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A> instance.</DL></DD></DL><HR><A NAME="newInstance(net.jxta.document.MimeMediaType, java.io.InputStream)"><!-- --></A><H3>newInstance</H3><PRE>public <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> <B>newInstance</B>(<A HREF="../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A>&nbsp;mimeType,                                      java.io.InputStream&nbsp;source)                               throws java.io.IOException</PRE><DL><DD>Create a structured document from a stream containing an appropriately serialized  instance of the same document.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mimeType</CODE> - The mimetype to be associated with this instance.      the base type must be one of the types returned by <tt>getSupportedMimeTypes</tt>. Some implementations may accept parameters in the params section of the mimetype.<DD><CODE>source</CODE> - Inputstream from which to read the instance.<DT><B>Returns:</B><DD><A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A> instance.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - occurs when there is a problem with the source input stream.</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/StructuredDocumentFactory.Instantiator.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;<A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../net/jxta/document/StructuredDocumentFactory.TextInstantiator.html" title="interface in net.jxta.document"><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>  &nbsp;&nbsp;<A HREF="StructuredDocumentFactory.Instantiator.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;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&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 + -