mimetype.html

来自「wifi上网例子程序」· HTML 代码 · 共 672 行 · 第 1/2 页

HTML
672
字号
<!-- ============ 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="getPrimaryType()"><!-- --></A><H3>getPrimaryType</H3><PRE>public java.lang.String <B>getPrimaryType</B>()</PRE><DL><DD>Retrieve the primary type of this object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the primary MIME type</DL></DD></DL><HR><A NAME="setPrimaryType(java.lang.String)"><!-- --></A><H3>setPrimaryType</H3><PRE>public void <B>setPrimaryType</B>(java.lang.String&nbsp;primary)                    throws <A HREF="../../javax/activation/MimeTypeParseException.html" title="class in javax.activation">MimeTypeParseException</A></PRE><DL><DD>Set the primary type for this object to the given String.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>primary</CODE> - the primary MIME type<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/activation/MimeTypeParseException.html" title="class in javax.activation">MimeTypeParseException</A></CODE> - if the primary type						is not a valid token</DL></DD></DL><HR><A NAME="getSubType()"><!-- --></A><H3>getSubType</H3><PRE>public java.lang.String <B>getSubType</B>()</PRE><DL><DD>Retrieve the subtype of this object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the MIME subtype</DL></DD></DL><HR><A NAME="setSubType(java.lang.String)"><!-- --></A><H3>setSubType</H3><PRE>public void <B>setSubType</B>(java.lang.String&nbsp;sub)                throws <A HREF="../../javax/activation/MimeTypeParseException.html" title="class in javax.activation">MimeTypeParseException</A></PRE><DL><DD>Set the subtype for this object to the given String.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sub</CODE> - the MIME subtype<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/activation/MimeTypeParseException.html" title="class in javax.activation">MimeTypeParseException</A></CODE> - if the subtype						is not a valid token</DL></DD></DL><HR><A NAME="getParameters()"><!-- --></A><H3>getParameters</H3><PRE>public <A HREF="../../javax/activation/MimeTypeParameterList.html" title="class in javax.activation">MimeTypeParameterList</A> <B>getParameters</B>()</PRE><DL><DD>Retrieve this object's parameter list.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a MimeTypeParameterList object representing the parameters</DL></DD></DL><HR><A NAME="getParameter(java.lang.String)"><!-- --></A><H3>getParameter</H3><PRE>public java.lang.String <B>getParameter</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Retrieve the value associated with the given name, or null if there is no current association.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the parameter name<DT><B>Returns:</B><DD>the paramter's value</DL></DD></DL><HR><A NAME="setParameter(java.lang.String, java.lang.String)"><!-- --></A><H3>setParameter</H3><PRE>public void <B>setParameter</B>(java.lang.String&nbsp;name,                         java.lang.String&nbsp;value)</PRE><DL><DD>Set the value to be associated with the given name, replacing any previous association.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the parameter name<DD><CODE>value</CODE> - the paramter's value</DL></DD></DL><HR><A NAME="removeParameter(java.lang.String)"><!-- --></A><H3>removeParameter</H3><PRE>public void <B>removeParameter</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Remove any value associated with the given name.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the parameter name</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Return the String representation of this object.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getBaseType()"><!-- --></A><H3>getBaseType</H3><PRE>public java.lang.String <B>getBaseType</B>()</PRE><DL><DD>Return a String representation of this object without the parameter list.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the MIME type and sub-type</DL></DD></DL><HR><A NAME="match(javax.activation.MimeType)"><!-- --></A><H3>match</H3><PRE>public boolean <B>match</B>(<A HREF="../../javax/activation/MimeType.html" title="class in javax.activation">MimeType</A>&nbsp;type)</PRE><DL><DD>Determine if the primary and sub type of this object is the same as what is in the given type.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - the MimeType object to compare with<DT><B>Returns:</B><DD>true if they match</DL></DD></DL><HR><A NAME="match(java.lang.String)"><!-- --></A><H3>match</H3><PRE>public boolean <B>match</B>(java.lang.String&nbsp;rawdata)              throws <A HREF="../../javax/activation/MimeTypeParseException.html" title="class in javax.activation">MimeTypeParseException</A></PRE><DL><DD>Determine if the primary and sub type of this object is the same as the content type described in rawdata.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rawdata</CODE> - the MIME type string to compare with<DT><B>Returns:</B><DD>true if they match<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/activation/MimeTypeParseException.html" title="class in javax.activation">MimeTypeParseException</A></CODE></DL></DD></DL><HR><A NAME="writeExternal(java.io.ObjectOutput)"><!-- --></A><H3>writeExternal</H3><PRE>public void <B>writeExternal</B>(java.io.ObjectOutput&nbsp;out)                   throws java.io.IOException</PRE><DL><DD>The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings and arrays.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>writeExternal</CODE> in interface <CODE>java.io.Externalizable</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the ObjectOutput object to write to<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - Includes any I/O exceptions that may occur</DL></DD></DL><HR><A NAME="readExternal(java.io.ObjectInput)"><!-- --></A><H3>readExternal</H3><PRE>public void <B>readExternal</B>(java.io.ObjectInput&nbsp;in)                  throws java.io.IOException,                         java.lang.ClassNotFoundException</PRE><DL><DD>The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.  The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>readExternal</CODE> in interface <CODE>java.io.Externalizable</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the ObjectInput object to read from<DT><B>Throws:</B><DD><CODE>java.lang.ClassNotFoundException</CODE> - If the class for an object being              restored cannot be found.<DD><CODE>java.io.IOException</CODE></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="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/MimeType.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-files/index-1.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../javax/activation/MailcapCommandMap.html" title="class in javax.activation"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/activation/MimeTypeParameterList.html" title="class in javax.activation"><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="MimeType.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 + =
减小字号Ctrl + -
显示快捷键?