📄 contentitem.html
字号:
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface com.ibm.content.binder.model.<A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html" title="interface in com.ibm.content.binder.model">ContentReference</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#getContentProvider()">getContentProvider</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#getDescription()">getDescription</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#getDisplayName()">getDisplayName</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#getMetadata(java.lang.String)">getMetadata</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#getName()">getName</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#getType()">getType</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#getUri()">getUri</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#isContentStored()">isContentStored</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#isReference()">isReference</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#isVisible()">isVisible</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#setContentProvider(java.lang.String)">setContentProvider</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#setDisplayName(java.lang.String)">setDisplayName</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#setType(java.lang.String)">setType</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#setUri(java.lang.String)">setUri</A>, <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html#setVisible(boolean)">setVisible</A></CODE></TD></TR></TABLE> <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="getId()"><!-- --></A><H3>getId</H3><PRE>public java.lang.String <B>getId</B>()</PRE><DL><DD>The ID identifying this <code>ContentItem</code> in the underlying Portal Content Management API. This id will only be available once the <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> this <code>ContentItem</code> is attached to has been saved. Retrieveing it before that, will return <code>null</null>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the ID of this <code>ContentItem</code></DL></DD></DL><HR><A NAME="getContentStream()"><!-- --></A><H3>getContentStream</H3><PRE>public java.io.InputStream <B>getContentStream</B>()</PRE><DL><DD>An InputStream containing the content stored in this <code>ContentItem</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an InputStream</DL></DD></DL><HR><A NAME="getObject()"><!-- --></A><H3>getObject</H3><PRE>public java.lang.Object <B>getObject</B>() throws java.io.IOException, java.lang.ClassNotFoundException</PRE><DL><DD>Convenience method to retrieve an Object that has been serialized in this <code>ContentItem</code>, using <A HREF="../../../../../com/ibm/content/binder/model/ContentItem.html#setObject(java.lang.Object)"><CODE>setObject(Object)</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Object previously saved with <A HREF="../../../../../com/ibm/content/binder/model/ContentItem.html#setObject(java.lang.Object)"><CODE>setObject(Object)</CODE></A><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an IO error happened while deserializing the stream<DD><CODE>java.lang.ClassNotFoundException</CODE> - if the class of the serialized Object cannot be found</DL></DD></DL><HR><A NAME="setContentStream(java.io.InputStream)"><!-- --></A><H3>setContentStream</H3><PRE>public void <B>setContentStream</B>(java.io.InputStream contentStream)</PRE><DL><DD>Sets the content to be stored in this <code>ContentItem</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>contentStream</CODE> - an InputStream containing the content.</DL></DD></DL><HR><A NAME="setObject(java.lang.Object)"><!-- --></A><H3>setObject</H3><PRE>public void <B>setObject</B>(java.lang.Object object) throws java.io.IOException</PRE><DL><DD>Convenience method that saves an Object inside this <code>ContentItem</code> by serializing it. The Object can later be retrieved using #getObject(). Note that the Object must be serializable.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an IO error happened while serializing the Object<DD><CODE>NotSerializableException</CODE> - if the Object is not serializable</DL></DD></DL><HR><A NAME="getMimeType()"><!-- --></A><H3>getMimeType</H3><PRE>public java.lang.String <B>getMimeType</B>()</PRE><DL><DD>The mime type of the content stored in this <code>ContentItem</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the mime type of the stored content as a String.</DL></DD></DL><HR><A NAME="setMimeType(java.lang.String)"><!-- --></A><H3>setMimeType</H3><PRE>public void <B>setMimeType</B>(java.lang.String mimeType)</PRE><DL><DD>Sets the mime type of the content stored in this <code>ContentItem</code>. <br><br> Setting this property is optional. However, it is advised to set it if the content stored in this ContentItem will be rendered in a UI.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>mimeType</CODE> - the mime type as a String.</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/ibm/content/binder/model/BinderFactory.html" title="interface in com.ibm.content.binder.model"><B>PREV CLASS</B></A> <A HREF="../../../../../com/ibm/content/binder/model/ContentReference.html" title="interface in com.ibm.content.binder.model"><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> <A HREF="ContentItem.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -