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

📄 contentmanager.html

📁 jxta-cms-doc-2.4.zip是jxta-cms-SRC-2.4.zip配套的学习文档。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
ContentManager</H3><PRE>public <B>ContentManager</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="share(java.io.File)"><!-- --></A><H3>share</H3><PRE>public <A HREF="../../../net/jxta/share/FileContent.html" title="interface in net.jxta.share">FileContent</A> <B>share</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html" title="class or interface in java.io">File</A>&nbsp;file)                  throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Shares the specified file using the file name as the share name and a default mime type based on the file name. No description will be provided for the shared content.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the File to be shared<DT><B>Returns:</B><DD>the FileContent object for the shared file<DT><B>Throws:</B><DD><CODE>FileNotFoundException</CODE> - if the file could not be found<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if there was an I/O error</DL></DD></DL><HR><A NAME="share(java.io.File, java.lang.String)"><!-- --></A><H3>share</H3><PRE>public <A HREF="../../../net/jxta/share/FileContent.html" title="interface in net.jxta.share">FileContent</A> <B>share</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html" title="class or interface in java.io">File</A>&nbsp;file,                         <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;desc)                  throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Shares the specified file with a description. The file name will be used as the share name and a default mime type provided based on the file name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the File to be shared<DD><CODE>desc</CODE> - the description of the content<DT><B>Returns:</B><DD>the FileContent object for the shared file<DT><B>Throws:</B><DD><CODE>FileNotFoundException</CODE> - if the file could not be found<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if there was an I/O error</DL></DD></DL><HR><A NAME="share(java.io.File, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>share</H3><PRE>public abstract <A HREF="../../../net/jxta/share/FileContent.html" title="interface in net.jxta.share">FileContent</A> <B>share</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html" title="class or interface in java.io">File</A>&nbsp;file,                                  <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,                                  <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;type,                                  <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;desc)                           throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Shares the specified file with the provided content name, type, and description.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the File to be shared<DD><CODE>name</CODE> - the share name, or null if file name should be used<DD><CODE>type</CODE> - the content type, or null if none<DD><CODE>desc</CODE> - the content description, or null if none<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="share(java.io.File, java.lang.String, java.lang.String, net.jxta.share.metadata.ContentMetadata[])"><!-- --></A><H3>share</H3><PRE>public abstract <A HREF="../../../net/jxta/share/FileContent.html" title="interface in net.jxta.share">FileContent</A> <B>share</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html" title="class or interface in java.io">File</A>&nbsp;file,                                  <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,                                  <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;type,                                  <A HREF="../../../net/jxta/share/metadata/ContentMetadata.html" title="class in net.jxta.share.metadata">ContentMetadata</A>[]&nbsp;metadata)                           throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Shares the specified file with the provided content name, type, and metadata.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the File to be shared<DD><CODE>name</CODE> - the share name, or null if file name should be used<DD><CODE>type</CODE> - the content type, or null if none<DD><CODE>metadata</CODE> - ContentMetadata objects describing <code>file</code>, or  null if not specified.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="unshare(net.jxta.share.Content)"><!-- --></A><H3>unshare</H3><PRE>public abstract void <B>unshare</B>(<A HREF="../../../net/jxta/share/Content.html" title="interface in net.jxta.share">Content</A>&nbsp;c)                      throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Removes the specified Content from the list of shared content.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the Content to be unshared<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the Content was not shared<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if there was an I/O error</DL></DD></DL><HR><A NAME="unshare(net.jxta.share.ContentAdvertisement)"><!-- --></A><H3>unshare</H3><PRE>public abstract void <B>unshare</B>(<A HREF="../../../net/jxta/share/ContentAdvertisement.html" title="class in net.jxta.share">ContentAdvertisement</A>&nbsp;cAdv)                      throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Removes the specified Content from the list of shared content.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>cAdv</CODE> - Content Advertisement of the content to be unshared<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the Content was not shared<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if there was an I/O error</DL></DD></DL><HR><A NAME="getContent()"><!-- --></A><H3>getContent</H3><PRE>public abstract <A HREF="../../../net/jxta/share/Content.html" title="interface in net.jxta.share">Content</A>[] <B>getContent</B>()</PRE><DL><DD>Returns an array of all the shared content.<P><DD><DL></DL></DD></DL><HR><A NAME="getContent(net.jxta.share.ContentId)"><!-- --></A><H3>getContent</H3><PRE>public abstract <A HREF="../../../net/jxta/share/Content.html" title="interface in net.jxta.share">Content</A>[] <B>getContent</B>(<A HREF="../../../net/jxta/share/ContentId.html" title="interface in net.jxta.share">ContentId</A>&nbsp;id)</PRE><DL><DD>Returns an array of all the shared content with the specified content id.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - the ContentId of the shared content</DL></DD></DL><HR><A NAME="getContent(net.jxta.share.ContentFilter)"><!-- --></A><H3>getContent</H3><PRE>public abstract <A HREF="../../../net/jxta/share/Content.html" title="interface in net.jxta.share">Content</A>[] <B>getContent</B>(<A HREF="../../../net/jxta/share/ContentFilter.html" title="interface in net.jxta.share">ContentFilter</A>&nbsp;filter)</PRE><DL><DD>Returns an array of all the shared content accepted by the specified content filter.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>filter</CODE> - the ContentFilter to use for search shared content</DL></DD></DL><HR><A NAME="getMimeType(java.io.File)"><!-- --></A><H3>getMimeType</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getMimeType</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html" title="class or interface in java.io">File</A>&nbsp;file)</PRE><DL><DD>Returns the mime type for the specified file, or null if unknown.<P><DD><DL></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=2 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/ContentManager.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 Java SE CMS</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../net/jxta/share/ContentIdImpl.html" title="class in net.jxta.share"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../net/jxta/share/ContentManagerImpl.html" title="class in net.jxta.share"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?net/jxta/share/ContentManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ContentManager.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 + -