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

📄 structureddocumentfactory.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DL><DD>Returns the prefered mime-type for a given file extension. If there is no mapping then null is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>extension</CODE> - The extension we wish to know the mime-type for.<DT><B>Returns:</B><DD>MimeMediaType associated with this file extension.</DL></DD></DL><HR><A NAME="registerInstantiator(net.jxta.document.MimeMediaType, net.jxta.document.StructuredDocumentFactory.Instantiator)"><!-- --></A><H3>registerInstantiator</H3><PRE>public static boolean <B>registerInstantiator</B>(<A HREF="../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A>&nbsp;mimetype,                                           <A HREF="../../../net/jxta/document/StructuredDocumentFactory.Instantiator.html" title="interface in net.jxta.document">StructuredDocumentFactory.Instantiator</A>&nbsp;instantiator)</PRE><DL><DD>Register an instantiator object a mime-type of documents to be constructed.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mimetype</CODE> - the mime-type associated.<DD><CODE>instantiator</CODE> - the instantiator that wants to be registered..<DT><B>Returns:</B><DD>boolean true   if the instantiator for this mime-type is now registered. If there was already an instantiator this mime-type then false will be returned.<DT><B>Throws:</B><DD><CODE>java.lang.SecurityException</CODE> - there were permission problems registering  the instantiator.</DL></DD></DL><HR><A NAME="newStructuredDocument(net.jxta.document.MimeMediaType, java.lang.String)"><!-- --></A><H3>newStructuredDocument</H3><PRE>public static <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> <B>newStructuredDocument</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>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. The <CODE>doctype</CODE> parameter identifies the base type of the <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mimetype</CODE> - Specifies the mime media type to be associated with  the <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A> to be created.<DD><CODE>doctype</CODE> - Specifies the root type of the <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A>  to be created.<DT><B>Returns:</B><DD>StructuredDocument The instance of <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A>  or null if it could not be created.<DT><B>Throws:</B><DD><CODE>NoSuchElementException</CODE> - invalid mime-media-type</DL></DD></DL><HR><A NAME="newStructuredDocument(net.jxta.document.MimeMediaType, java.lang.String, java.lang.String)"><!-- --></A><H3>newStructuredDocument</H3><PRE>public static <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> <B>newStructuredDocument</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>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. The <CODE>doctype</CODE> parameter identifies the base type of the <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A>. Value supplies a value for the root element.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mimetype</CODE> - Specifies the mime media type to be associated with  the <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A> to be created.<DD><CODE>doctype</CODE> - Specifies the root type of the <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A>  to be created.<DD><CODE>value</CODE> - Specifies a value for the root element.<DT><B>Returns:</B><DD>StructuredDocument The instance of <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A>  or null if it could not be created.<DT><B>Throws:</B><DD><CODE>NoSuchElementException</CODE> - if the mime-type has not been registerd.</DL></DD></DL><HR><A NAME="newStructuredDocument(net.jxta.document.MimeMediaType, java.io.InputStream)"><!-- --></A><H3>newStructuredDocument</H3><PRE>public static <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> <B>newStructuredDocument</B>(<A HREF="../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A>&nbsp;mimetype,                                                       java.io.InputStream&nbsp;stream)                                                throws java.io.IOException</PRE><DL><DD>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. The <CODE>doctype</CODE> parameter identifies the base type of the <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mimetype</CODE> - Specifies the mime media type to be associated with the  <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A> to be created.<DD><CODE>stream</CODE> - Contains an InputStream from which the document will be  constructed.<DT><B>Returns:</B><DD>StructuredDocument The instance of <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A>  or null if it could not be created.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If there is a problem reading from the stream.<DD><CODE>NoSuchElementException</CODE> - if the mime-type has not been registerd.</DL></DD></DL><HR><A NAME="newStructuredDocument(net.jxta.document.MimeMediaType, java.io.Reader)"><!-- --></A><H3>newStructuredDocument</H3><PRE>public static <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> <B>newStructuredDocument</B>(<A HREF="../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A>&nbsp;mimetype,                                                       java.io.Reader&nbsp;reader)                                                throws java.io.IOException</PRE><DL><DD>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. The <CODE>doctype</CODE> parameter identifies the base type of the <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mimetype</CODE> - Specifies the mime media type to be associated with the  <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A> to be created.<DD><CODE>reader</CODE> - A Reader from which the document will be constructed.<DT><B>Returns:</B><DD>StructuredDocument The instance of <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document"><CODE>StructuredDocument</CODE></A>  or null if it could not be created.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If there is a problem reading from the stream.<DD><CODE>NoSuchElementException</CODE> - if the mime-type has not been registerd.<DD><CODE>java.lang.UnsupportedOperationException</CODE> - if the mime-type provided is not a text oriented mimetype.</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.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/MimeMediaType.html" title="class in net.jxta.document"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../net/jxta/document/StructuredDocumentFactory.Instantiator.ExtensionMapping.html" title="class 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.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 + -