📄 mmcontent.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Mon Apr 12 20:18:56 GMT+08:00 2004 -->
<META http-equiv="Content-Type" content="text/html; charset=GBK">
<TITLE>
MMContent
</TITLE>
<META NAME="keywords" CONTENT="com.cmcc.mm7.vasp.common.MMContent,MMContent class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
</HEAD>
<SCRIPT>
function asd()
{
parent.document.title="MMContent";
}
</SCRIPT>
<BODY BGCOLOR="white" onload="asd();">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<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"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </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="../../../../../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/cmcc/mm7/vasp/common/MMConstants.RequestStatus.html"><B>PREV CLASS</B></A>
<A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContentType.html"><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="MMContent.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.cmcc.mm7.vasp.common</FONT>
<BR>
Class MMContent</H2>
<PRE>
java.lang.Object
|
+--<B>com.cmcc.mm7.vasp.common.MMContent</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, java.io.Serializable</DD>
</DL>
<HR>
<DL>
<DT>public class <B>MMContent</B><DT>extends java.lang.Object<DT>implements java.io.Serializable, java.lang.Cloneable</DL>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html" TARGET="com.cmcc.mm7.vasp.common.MMContent">Serialized Form</A></DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.List</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#SubContents">SubContents</A></B></CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#MMContent()">MMContent</A></B>()</CODE>
<BR>
构造方法</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#addSubContent(com.cmcc.mm7.vasp.common.MMContent)">addSubContent</A></B>(<A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html">MMContent</A> content)</CODE>
<BR>
加入单个MMContent到MMContent(List)</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html">MMContent</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#createFromBytes(byte[])">createFromBytes</A></B>(byte[] data)</CODE>
<BR>
通过输入byte[]类型建立MMContent</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html">MMContent</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#createFromFile(java.lang.String)">createFromFile</A></B>(java.lang.String filename)</CODE>
<BR>
通过输入文件的绝对路径建立MMContent</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html">MMContent</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#createFromStream(java.io.InputStream)">createFromStream</A></B>(java.io.InputStream in)</CODE>
<BR>
通过输入InputStream类型建立MMContent</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html">MMContent</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#createFromStream(java.io.InputStream, int)">createFromStream</A></B>(java.io.InputStream in, int length)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html">MMContent</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#createFromString(java.lang.String)">createFromString</A></B>(java.lang.String content)</CODE>
<BR>
通过输入String 类型建立MMContent</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#getCharset()">getCharset</A></B>()</CODE>
<BR>
获得文本媒体内容的字符集</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#getContent()">getContent</A></B>()</CODE>
<BR>
以二进制方式获得MMContent的内容</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#getContentAsString()">getContentAsString</A></B>()</CODE>
<BR>
以String方式获得MMContent的内容</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#getContentID()">getContentID</A></B>()</CODE>
<BR>
获得ContentID</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#getContentLocation()">getContentLocation</A></B>()</CODE>
<BR>
获得ContentLocation</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContentType.html">MMContentType</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#getContentType()">getContentType</A></B>()</CODE>
<BR>
获得内容类型</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html">MMContent</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#getPresentionContent()">getPresentionContent</A></B>()</CODE>
<BR>
获得Presentation部份的内容</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#getSize()">getSize</A></B>()</CODE>
<BR>
返回媒体内容的大小</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html">MMContent</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#getSubContentByID(java.lang.String)">getSubContentByID</A></B>(java.lang.String contentID)</CODE>
<BR>
通过ContentID获得MMContent类型的subContent</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html">MMContent</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#getSubContentByLocation(java.lang.String)">getSubContentByLocation</A></B>(java.lang.String contentLocation)</CODE>
<BR>
通过ContentLocation获得MMContent类型的subContent</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.List</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#getSubContents()">getSubContents</A></B>()</CODE>
<BR>
获得此MMContent嵌套的子MMContent的List</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#isContentIDExist()">isContentIDExist</A></B>()</CODE>
<BR>
是否存在ContentID</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#isContentLocationExist()">isContentLocationExist</A></B>()</CODE>
<BR>
是否存在ContentLocation</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#isMultipart()">isMultipart</A></B>()</CODE>
<BR>
是否存在嵌套媒体</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#isPresentionContentExist()">isPresentionContentExist</A></B>()</CODE>
<BR>
是否存在Presentation部份</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#setCharset(java.lang.String)">setCharset</A></B>(java.lang.String charset)</CODE>
<BR>
设置文本媒体内容的字符集</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#setContentID(java.lang.String)">setContentID</A></B>(java.lang.String contentID)</CODE>
<BR>
设置ContentID</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#setContentLocation(java.lang.String)">setContentLocation</A></B>(java.lang.String contentLocation)</CODE>
<BR>
设置ContentLocation</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#setContentType(com.cmcc.mm7.vasp.common.MMContentType)">setContentType</A></B>(<A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContentType.html">MMContentType</A> contentType)</CODE>
<BR>
设置内容类型</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#setPresentionContent(com.cmcc.mm7.vasp.common.MMContent)">setPresentionContent</A></B>(<A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html">MMContent</A> presentionContent)</CODE>
<BR>
设置MMContent为Presentation部份</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/MMContent.html#toString()">toString</A></B>()</CODE>
<BR>
返回对象的文本表示</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="SubContents"><!-- --></A><H3>
SubContents</H3>
<PRE>
public java.util.List <B>SubContents</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="MMContent()"><!-- --></A><H3>
MMContent</H3>
<PRE>
public <B>MMContent</B>()</PRE>
<DL>
<DD>构造方法
<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="getSubContents()"><!-- --></A><H3>
getSubContents</H3>
<PRE>
public java.util.List <B>getSubContents</B>()</PRE>
<DL>
<DD>获得此MMContent嵌套的子MMContent的List
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isMultipart()"><!-- --></A><H3>
isMultipart</H3>
<PRE>
public boolean <B>isMultipart</B>()</PRE>
<DL>
<DD>是否存在嵌套媒体
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getContentType()"><!-- --></A><H3>
getContentType</H3>
<PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -