Subversion Repositories javautils

Rev

Blame | Last modification | View Log | RSS feed

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_10) on Tue Nov 17 12:13:38 PST 2009 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  7. <TITLE>
  8. Part (JavaMail API documentation)
  9. </TITLE>
  10.  
  11. <META NAME="date" CONTENT="2009-11-17">
  12.  
  13. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
  14.  
  15. <SCRIPT type="text/javascript">
  16. function windowTitle()
  17. {
  18.     if (location.href.indexOf('is-external=true') == -1) {
  19.         parent.document.title="Part (JavaMail API documentation)";
  20.     }
  21. }
  22. </SCRIPT>
  23. <NOSCRIPT>
  24. </NOSCRIPT>
  25.  
  26. </HEAD>
  27.  
  28. <BODY BGCOLOR="white" onload="windowTitle();">
  29. <HR>
  30.  
  31.  
  32. <!-- ========= START OF TOP NAVBAR ======= -->
  33. <A NAME="navbar_top"><!-- --></A>
  34. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  35. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  36. <TR>
  37. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  38. <A NAME="navbar_top_firstrow"><!-- --></A>
  39. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  40.   <TR ALIGN="center" VALIGN="top">
  41.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  42.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  43.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  44.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Part.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  45.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  46.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  47.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  48.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  49.   </TR>
  50. </TABLE>
  51. </TD>
  52. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  53. </EM>
  54. </TD>
  55. </TR>
  56.  
  57. <TR>
  58. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  59. &nbsp;<A HREF="../../javax/mail/NoSuchProviderException.html" title="class in javax.mail"><B>PREV CLASS</B></A>&nbsp;
  60. &nbsp;<A HREF="../../javax/mail/PasswordAuthentication.html" title="class in javax.mail"><B>NEXT CLASS</B></A></FONT></TD>
  61. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  62.   <A HREF="../../index.html?javax/mail/Part.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  63. &nbsp;<A HREF="Part.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  64. &nbsp;<SCRIPT type="text/javascript">
  65.   <!--
  66.   if(window==top) {
  67.     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
  68.   }
  69.   //-->
  70. </SCRIPT>
  71. <NOSCRIPT>
  72.   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
  73. </NOSCRIPT>
  74.  
  75.  
  76. </FONT></TD>
  77. </TR>
  78. <TR>
  79. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  80.   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  81. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  82. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  83. </TR>
  84. </TABLE>
  85. <A NAME="skip-navbar_top"></A>
  86. <!-- ========= END OF TOP NAVBAR ========= -->
  87.  
  88. <HR>
  89. <!-- ======== START OF CLASS DATA ======== -->
  90. <H2>
  91. <FONT SIZE="-1">
  92. javax.mail</FONT>
  93. <BR>
  94. Interface Part</H2>
  95. <DL>
  96. <DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../javax/mail/internet/MimePart.html" title="interface in javax.mail.internet">MimePart</A></DD>
  97. </DL>
  98. <DL>
  99. <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../javax/mail/BodyPart.html" title="class in javax.mail">BodyPart</A>, <A HREF="../../com/sun/mail/imap/IMAPMessage.html" title="class in com.sun.mail.imap">IMAPMessage</A>, <A HREF="../../javax/mail/Message.html" title="class in javax.mail">Message</A>, <A HREF="../../com/sun/mail/dsn/MessageHeaders.html" title="class in com.sun.mail.dsn">MessageHeaders</A>, <A HREF="../../javax/mail/internet/MimeBodyPart.html" title="class in javax.mail.internet">MimeBodyPart</A>, <A HREF="../../javax/mail/internet/MimeMessage.html" title="class in javax.mail.internet">MimeMessage</A>, <A HREF="../../com/sun/mail/pop3/POP3Message.html" title="class in com.sun.mail.pop3">POP3Message</A>, <A HREF="../../javax/mail/internet/PreencodedMimeBodyPart.html" title="class in javax.mail.internet">PreencodedMimeBodyPart</A>, <A HREF="../../com/sun/mail/smtp/SMTPMessage.html" title="class in com.sun.mail.smtp">SMTPMessage</A></DD>
  100. </DL>
  101. <HR>
  102. <DL>
  103. <DT><PRE>public interface <B>Part</B></DL>
  104. </PRE>
  105.  
  106. <P>
  107. The <code>Part</code> interface is the common base interface for
  108.  Messages and BodyParts. <p>
  109.  
  110.  Part consists of a set of attributes and a "Content".<p>
  111.  
  112.  <strong> Attributes: </strong> <p>
  113.  
  114.  The JavaMail API defines a set of standard Part attributes that are
  115.  considered to be common to most existing Mail systems. These
  116.  attributes have their own settor and gettor methods. Mail systems
  117.  may support other Part attributes as well, these are represented as
  118.  name-value pairs where both the name and value are Strings.<p>
  119.  
  120.  <strong> Content: </strong> <p>
  121.  
  122.  The <strong>data type</strong> of the "content" is returned by
  123.  the <code>getContentType()</code> method. The MIME typing system
  124.  is used to name data types. <p>
  125.  
  126.  The "content" of a Part is available in various formats:
  127.  <ul>
  128.  <li> As a DataHandler - using the <code>getDataHandler()</code> method.
  129.  The "content" of a Part is also available through a
  130.  <code>javax.activation.DataHandler</code> object. The DataHandler
  131.  object allows clients to discover the operations available on the
  132.  content, and to instantiate the appropriate component to perform
  133.  those operations.
  134.  
  135.  <li> As an input stream - using the <code>getInputStream()</code> method.
  136.  Any mail-specific encodings are decoded before this stream is returned.
  137.  
  138.  <li> As a Java object - using the <code>getContent()</code> method.
  139.  This method returns the "content" as a Java object.
  140.  The returned object is of course dependent on the content
  141.  itself. In particular, a "multipart" Part's content is always a
  142. Multipart or subclass thereof.  That is, <code>getContent()</code> on a
  143. "multipart" type Part will always return a Multipart (or subclass) object.
  144. </ul>
  145.  
  146. Part provides the <code>writeTo()</code> method that streams
  147. out its bytestream in mail-safe form suitable for transmission.
  148. This bytestream is typically an aggregation of the Part attributes
  149. and its content's bytestream. <p>
  150.  
  151.  Message and BodyPart implement the Part interface. Note that in
  152.  MIME parlance, Part models an Entity (RFC 2045, Section 2.4).
  153. <P>
  154.  
  155. <P>
  156. <HR>
  157.  
  158. <P>
  159. <!-- =========== FIELD SUMMARY =========== -->
  160.  
  161. <A NAME="field_summary"><!-- --></A>
  162. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  163. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  164. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  165. <B>Field Summary</B></FONT></TH>
  166. </TR>
  167. <TR BGCOLOR="white" CLASS="TableRowColor">
  168. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  169. <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  170. <TD><CODE><B><A HREF="../../javax/mail/Part.html#ATTACHMENT">ATTACHMENT</A></B></CODE>
  171.  
  172. <BR>
  173. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This part should be presented as an attachment.</TD>
  174. </TR>
  175. <TR BGCOLOR="white" CLASS="TableRowColor">
  176. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  177. <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  178. <TD><CODE><B><A HREF="../../javax/mail/Part.html#INLINE">INLINE</A></B></CODE>
  179.  
  180. <BR>
  181. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This part should be presented inline.</TD>
  182. </TR>
  183. </TABLE>
  184. &nbsp;
  185. <!-- ========== METHOD SUMMARY =========== -->
  186.  
  187. <A NAME="method_summary"><!-- --></A>
  188. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  189. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  190. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  191. <B>Method Summary</B></FONT></TH>
  192. </TR>
  193. <TR BGCOLOR="white" CLASS="TableRowColor">
  194. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  195. <CODE>&nbsp;void</CODE></FONT></TD>
  196. <TD><CODE><B><A HREF="../../javax/mail/Part.html#addHeader(java.lang.String, java.lang.String)">addHeader</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;header_name,
  197.           <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;header_value)</CODE>
  198.  
  199. <BR>
  200. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add this value to the existing values for this header_name.</TD>
  201. </TR>
  202. <TR BGCOLOR="white" CLASS="TableRowColor">
  203. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  204. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A></CODE></FONT></TD>
  205. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getAllHeaders()">getAllHeaders</A></B>()</CODE>
  206.  
  207. <BR>
  208. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return all the headers from this part as an Enumeration of
  209.  Header objects.</TD>
  210. </TR>
  211. <TR BGCOLOR="white" CLASS="TableRowColor">
  212. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  213. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
  214. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getContent()">getContent</A></B>()</CODE>
  215.  
  216. <BR>
  217. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the content as a Java object.</TD>
  218. </TR>
  219. <TR BGCOLOR="white" CLASS="TableRowColor">
  220. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  221. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  222. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getContentType()">getContentType</A></B>()</CODE>
  223.  
  224. <BR>
  225. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Content-Type of the content of this part.</TD>
  226. </TR>
  227. <TR BGCOLOR="white" CLASS="TableRowColor">
  228. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  229. <CODE>&nbsp;<A HREF="http://java.sun.com/javase/technologies/desktop/javabeans/glasgow/javadocs/javax/activation/DataHandler.html?is-external=true" title="class or interface in javax.activation">DataHandler</A></CODE></FONT></TD>
  230. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getDataHandler()">getDataHandler</A></B>()</CODE>
  231.  
  232. <BR>
  233. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a DataHandler for the content within this part.</TD>
  234. </TR>
  235. <TR BGCOLOR="white" CLASS="TableRowColor">
  236. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  237. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  238. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getDescription()">getDescription</A></B>()</CODE>
  239.  
  240. <BR>
  241. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a description String for this part.</TD>
  242. </TR>
  243. <TR BGCOLOR="white" CLASS="TableRowColor">
  244. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  245. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  246. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getDisposition()">getDisposition</A></B>()</CODE>
  247.  
  248. <BR>
  249. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the disposition of this part.</TD>
  250. </TR>
  251. <TR BGCOLOR="white" CLASS="TableRowColor">
  252. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  253. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  254. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getFileName()">getFileName</A></B>()</CODE>
  255.  
  256. <BR>
  257. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the filename associated with this part, if possible.</TD>
  258. </TR>
  259. <TR BGCOLOR="white" CLASS="TableRowColor">
  260. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  261. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
  262. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getHeader(java.lang.String)">getHeader</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;header_name)</CODE>
  263.  
  264. <BR>
  265. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get all the headers for this header name.</TD>
  266. </TR>
  267. <TR BGCOLOR="white" CLASS="TableRowColor">
  268. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  269. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A></CODE></FONT></TD>
  270. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getInputStream()">getInputStream</A></B>()</CODE>
  271.  
  272. <BR>
  273. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an input stream for this part's "content".</TD>
  274. </TR>
  275. <TR BGCOLOR="white" CLASS="TableRowColor">
  276. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  277. <CODE>&nbsp;int</CODE></FONT></TD>
  278. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getLineCount()">getLineCount</A></B>()</CODE>
  279.  
  280. <BR>
  281. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of lines in the content of this part.</TD>
  282. </TR>
  283. <TR BGCOLOR="white" CLASS="TableRowColor">
  284. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  285. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A></CODE></FONT></TD>
  286. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getMatchingHeaders(java.lang.String[])">getMatchingHeaders</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;header_names)</CODE>
  287.  
  288. <BR>
  289. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return matching headers from this part as an Enumeration of
  290. Header objects.</TD>
  291. </TR>
  292. <TR BGCOLOR="white" CLASS="TableRowColor">
  293. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  294. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A></CODE></FONT></TD>
  295. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getNonMatchingHeaders(java.lang.String[])">getNonMatchingHeaders</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;header_names)</CODE>
  296.  
  297. <BR>
  298. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return non-matching headers from this envelope as an Enumeration
  299. of Header objects.</TD>
  300. </TR>
  301. <TR BGCOLOR="white" CLASS="TableRowColor">
  302. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  303. <CODE>&nbsp;int</CODE></FONT></TD>
  304. <TD><CODE><B><A HREF="../../javax/mail/Part.html#getSize()">getSize</A></B>()</CODE>
  305.  
  306. <BR>
  307. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the size of the content of this part in bytes.</TD>
  308. </TR>
  309. <TR BGCOLOR="white" CLASS="TableRowColor">
  310. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  311. <CODE>&nbsp;boolean</CODE></FONT></TD>
  312. <TD><CODE><B><A HREF="../../javax/mail/Part.html#isMimeType(java.lang.String)">isMimeType</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;mimeType)</CODE>
  313.  
  314. <BR>
  315. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is this Part of the specified MIME type?  This method
  316. compares <strong>only the <code>primaryType</code> and
  317. <code>subType</code></strong>.</TD>
  318. </TR>
  319. <TR BGCOLOR="white" CLASS="TableRowColor">
  320. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  321. <CODE>&nbsp;void</CODE></FONT></TD>
  322. <TD><CODE><B><A HREF="../../javax/mail/Part.html#removeHeader(java.lang.String)">removeHeader</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;header_name)</CODE>
  323.  
  324. <BR>
  325. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove all headers with this name.</TD>
  326. </TR>
  327. <TR BGCOLOR="white" CLASS="TableRowColor">
  328. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  329. <CODE>&nbsp;void</CODE></FONT></TD>
  330. <TD><CODE><B><A HREF="../../javax/mail/Part.html#setContent(javax.mail.Multipart)">setContent</A></B>(<A HREF="../../javax/mail/Multipart.html" title="class in javax.mail">Multipart</A>&nbsp;mp)</CODE>
  331.  
  332. <BR>
  333. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method sets the given Multipart object as this message's
  334.  content.</TD>
  335. </TR>
  336. <TR BGCOLOR="white" CLASS="TableRowColor">
  337. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  338. <CODE>&nbsp;void</CODE></FONT></TD>
  339. <TD><CODE><B><A HREF="../../javax/mail/Part.html#setContent(java.lang.Object, java.lang.String)">setContent</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;obj,
  340.            <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;type)</CODE>
  341.  
  342. <BR>
  343. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A convenience method for setting this part's content.</TD>
  344. </TR>
  345. <TR BGCOLOR="white" CLASS="TableRowColor">
  346. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  347. <CODE>&nbsp;void</CODE></FONT></TD>
  348. <TD><CODE><B><A HREF="../../javax/mail/Part.html#setDataHandler(javax.activation.DataHandler)">setDataHandler</A></B>(<A HREF="http://java.sun.com/javase/technologies/desktop/javabeans/glasgow/javadocs/javax/activation/DataHandler.html?is-external=true" title="class or interface in javax.activation">DataHandler</A>&nbsp;dh)</CODE>
  349.  
  350. <BR>
  351. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method provides the mechanism to set this part's content.</TD>
  352. </TR>
  353. <TR BGCOLOR="white" CLASS="TableRowColor">
  354. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  355. <CODE>&nbsp;void</CODE></FONT></TD>
  356. <TD><CODE><B><A HREF="../../javax/mail/Part.html#setDescription(java.lang.String)">setDescription</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;description)</CODE>
  357.  
  358. <BR>
  359. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a description String for this part.</TD>
  360. </TR>
  361. <TR BGCOLOR="white" CLASS="TableRowColor">
  362. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  363. <CODE>&nbsp;void</CODE></FONT></TD>
  364. <TD><CODE><B><A HREF="../../javax/mail/Part.html#setDisposition(java.lang.String)">setDisposition</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;disposition)</CODE>
  365.  
  366. <BR>
  367. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the disposition of this part.</TD>
  368. </TR>
  369. <TR BGCOLOR="white" CLASS="TableRowColor">
  370. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  371. <CODE>&nbsp;void</CODE></FONT></TD>
  372. <TD><CODE><B><A HREF="../../javax/mail/Part.html#setFileName(java.lang.String)">setFileName</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;filename)</CODE>
  373.  
  374. <BR>
  375. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the filename associated with this part, if possible.</TD>
  376. </TR>
  377. <TR BGCOLOR="white" CLASS="TableRowColor">
  378. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  379. <CODE>&nbsp;void</CODE></FONT></TD>
  380. <TD><CODE><B><A HREF="../../javax/mail/Part.html#setHeader(java.lang.String, java.lang.String)">setHeader</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;header_name,
  381.           <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;header_value)</CODE>
  382.  
  383. <BR>
  384. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the value for this header_name.</TD>
  385. </TR>
  386. <TR BGCOLOR="white" CLASS="TableRowColor">
  387. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  388. <CODE>&nbsp;void</CODE></FONT></TD>
  389. <TD><CODE><B><A HREF="../../javax/mail/Part.html#setText(java.lang.String)">setText</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;text)</CODE>
  390.  
  391. <BR>
  392. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A convenience method that sets the given String as this
  393.  part's content with a MIME type of "text/plain".</TD>
  394. </TR>
  395. <TR BGCOLOR="white" CLASS="TableRowColor">
  396. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  397. <CODE>&nbsp;void</CODE></FONT></TD>
  398. <TD><CODE><B><A HREF="../../javax/mail/Part.html#writeTo(java.io.OutputStream)">writeTo</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;os)</CODE>
  399.  
  400. <BR>
  401. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Output a bytestream for this Part.</TD>
  402. </TR>
  403. </TABLE>
  404. &nbsp;
  405. <P>
  406.  
  407. <!-- ============ FIELD DETAIL =========== -->
  408.  
  409. <A NAME="field_detail"><!-- --></A>
  410. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  411. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  412. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  413. <B>Field Detail</B></FONT></TH>
  414. </TR>
  415. </TABLE>
  416.  
  417. <A NAME="ATTACHMENT"><!-- --></A><H3>
  418. ATTACHMENT</H3>
  419. <PRE>
  420. static final <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>ATTACHMENT</B></PRE>
  421. <DL>
  422. <DD>This part should be presented as an attachment.
  423. <P>
  424. <DL>
  425. <DT><B>See Also:</B><DD><A HREF="../../javax/mail/Part.html#getDisposition()"><CODE>getDisposition()</CODE></A>,
  426. <A HREF="../../javax/mail/Part.html#setDisposition(java.lang.String)"><CODE>setDisposition(java.lang.String)</CODE></A>,
  427. <A HREF="../../constant-values.html#javax.mail.Part.ATTACHMENT">Constant Field Values</A></DL>
  428. </DL>
  429. <HR>
  430.  
  431. <A NAME="INLINE"><!-- --></A><H3>
  432. INLINE</H3>
  433. <PRE>
  434. static final <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>INLINE</B></PRE>
  435. <DL>
  436. <DD>This part should be presented inline.
  437. <P>
  438. <DL>
  439. <DT><B>See Also:</B><DD><A HREF="../../javax/mail/Part.html#getDisposition()"><CODE>getDisposition()</CODE></A>,
  440. <A HREF="../../javax/mail/Part.html#setDisposition(java.lang.String)"><CODE>setDisposition(java.lang.String)</CODE></A>,
  441. <A HREF="../../constant-values.html#javax.mail.Part.INLINE">Constant Field Values</A></DL>
  442. </DL>
  443.  
  444. <!-- ============ METHOD DETAIL ========== -->
  445.  
  446. <A NAME="method_detail"><!-- --></A>
  447. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  448. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  449. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  450. <B>Method Detail</B></FONT></TH>
  451. </TR>
  452. </TABLE>
  453.  
  454. <A NAME="getSize()"><!-- --></A><H3>
  455. getSize</H3>
  456. <PRE>
  457. int <B>getSize</B>()
  458.            throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  459. <DL>
  460. <DD>Return the size of the content of this part in bytes.
  461. Return -1 if the size cannot be determined. <p>
  462.  
  463. Note that the size may not be an exact measure of the content
  464. size and may or may not account for any transfer encoding
  465. of the content. The size is appropriate for display in a
  466. user interface to give the user a rough idea of the size
  467. of this part.
  468. <P>
  469. <DD><DL>
  470.  
  471. <DT><B>Returns:</B><DD>size of content in bytes
  472. <DT><B>Throws:</B>
  473. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  474. </DD>
  475. </DL>
  476. <HR>
  477.  
  478. <A NAME="getLineCount()"><!-- --></A><H3>
  479. getLineCount</H3>
  480. <PRE>
  481. int <B>getLineCount</B>()
  482.                 throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  483. <DL>
  484. <DD>Return the number of lines in the content of this part.
  485. Return -1 if the number cannot be determined.
  486.  
  487. Note that this number may not be an exact measure of the
  488. content length and may or may not account for any transfer
  489. encoding of the content.
  490. <P>
  491. <DD><DL>
  492.  
  493. <DT><B>Returns:</B><DD>number of lines in the content.
  494. <DT><B>Throws:</B>
  495. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  496. </DD>
  497. </DL>
  498. <HR>
  499.  
  500. <A NAME="getContentType()"><!-- --></A><H3>
  501. getContentType</H3>
  502. <PRE>
  503. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getContentType</B>()
  504.                      throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  505. <DL>
  506. <DD>Returns the Content-Type of the content of this part.
  507. Returns null if the Content-Type could not be determined. <p>
  508.  
  509. The MIME typing system is used to name Content-types.
  510. <P>
  511. <DD><DL>
  512.  
  513. <DT><B>Returns:</B><DD>The ContentType of this part
  514. <DT><B>Throws:</B>
  515. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>See Also:</B><DD><A HREF="http://java.sun.com/javase/technologies/desktop/javabeans/glasgow/javadocs/javax/activation/DataHandler.html?is-external=true" title="class or interface in javax.activation"><CODE>DataHandler</CODE></A></DL>
  516. </DD>
  517. </DL>
  518. <HR>
  519.  
  520. <A NAME="isMimeType(java.lang.String)"><!-- --></A><H3>
  521. isMimeType</H3>
  522. <PRE>
  523. boolean <B>isMimeType</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;mimeType)
  524.                   throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  525. <DL>
  526. <DD>Is this Part of the specified MIME type?  This method
  527. compares <strong>only the <code>primaryType</code> and
  528. <code>subType</code></strong>.
  529. The parameters of the content types are ignored. <p>
  530.  
  531. For example, this method will return <code>true</code> when
  532. comparing a Part of content type <strong>"text/plain"</strong>
  533. with <strong>"text/plain; charset=foobar"</strong>. <p>
  534.  
  535. If the <code>subType</code> of <code>mimeType</code> is the
  536. special character '*', then the subtype is ignored during the
  537. comparison.
  538. <P>
  539. <DD><DL>
  540.  
  541. <DT><B>Throws:</B>
  542. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  543. </DD>
  544. </DL>
  545. <HR>
  546.  
  547. <A NAME="getDisposition()"><!-- --></A><H3>
  548. getDisposition</H3>
  549. <PRE>
  550. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getDisposition</B>()
  551.                      throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  552. <DL>
  553. <DD>Return the disposition of this part.  The disposition
  554. describes how the part should be presented to the user.
  555. (See RFC 2183.)  The return value should be considered
  556. without regard to case.  For example: <p>
  557. <blockquote><pre>
  558. String disp = part.getDisposition();
  559. if (disp == null || disp.equalsIgnoreCase(Part.ATTACHMENT))
  560.        // treat as attachment if not first part
  561. </pre></blockquote>
  562. <P>
  563. <DD><DL>
  564.  
  565. <DT><B>Returns:</B><DD>disposition of this part, or null if unknown
  566. <DT><B>Throws:</B>
  567. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>See Also:</B><DD><A HREF="../../javax/mail/Part.html#ATTACHMENT"><CODE>ATTACHMENT</CODE></A>,
  568. <A HREF="../../javax/mail/Part.html#INLINE"><CODE>INLINE</CODE></A>,
  569. <A HREF="../../javax/mail/Part.html#getFileName()"><CODE>getFileName()</CODE></A></DL>
  570. </DD>
  571. </DL>
  572. <HR>
  573.  
  574. <A NAME="setDisposition(java.lang.String)"><!-- --></A><H3>
  575. setDisposition</H3>
  576. <PRE>
  577. void <B>setDisposition</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;disposition)
  578.                    throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  579. <DL>
  580. <DD>Set the disposition of this part.
  581. <P>
  582. <DD><DL>
  583. <DT><B>Parameters:</B><DD><CODE>disposition</CODE> - disposition of this part
  584. <DT><B>Throws:</B>
  585. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE>
  586. <DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying implementation
  587.                        does not support modification of this header
  588. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this Part is obtained
  589.                        from a READ_ONLY folder<DT><B>See Also:</B><DD><A HREF="../../javax/mail/Part.html#ATTACHMENT"><CODE>ATTACHMENT</CODE></A>,
  590. <A HREF="../../javax/mail/Part.html#INLINE"><CODE>INLINE</CODE></A>,
  591. <A HREF="../../javax/mail/Part.html#setFileName(java.lang.String)"><CODE>setFileName(java.lang.String)</CODE></A></DL>
  592. </DD>
  593. </DL>
  594. <HR>
  595.  
  596. <A NAME="getDescription()"><!-- --></A><H3>
  597. getDescription</H3>
  598. <PRE>
  599. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getDescription</B>()
  600.                      throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  601. <DL>
  602. <DD>Return a description String for this part. This typically
  603. associates some descriptive information with this part.
  604. Returns null if none is available.
  605. <P>
  606. <DD><DL>
  607.  
  608. <DT><B>Returns:</B><DD>description of this part
  609. <DT><B>Throws:</B>
  610. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  611. </DD>
  612. </DL>
  613. <HR>
  614.  
  615. <A NAME="setDescription(java.lang.String)"><!-- --></A><H3>
  616. setDescription</H3>
  617. <PRE>
  618. void <B>setDescription</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;description)
  619.                    throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  620. <DL>
  621. <DD>Set a description String for this part. This typically
  622. associates some descriptive information with this part.
  623. <P>
  624. <DD><DL>
  625. <DT><B>Parameters:</B><DD><CODE>description</CODE> - description of this part
  626. <DT><B>Throws:</B>
  627. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE>
  628. <DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying implementation
  629.                        does not support modification of this header
  630. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this Part is obtained
  631.                        from a READ_ONLY folder</DL>
  632. </DD>
  633. </DL>
  634. <HR>
  635.  
  636. <A NAME="getFileName()"><!-- --></A><H3>
  637. getFileName</H3>
  638. <PRE>
  639. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getFileName</B>()
  640.                   throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  641. <DL>
  642. <DD>Get the filename associated with this part, if possible.
  643. Useful if this part represents an "attachment" that was
  644. loaded from a file.  The filename will usually be a simple
  645. name, not including directory components.
  646. <P>
  647. <DD><DL>
  648.  
  649. <DT><B>Returns:</B><DD>Filename to associate with this part
  650. <DT><B>Throws:</B>
  651. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  652. </DD>
  653. </DL>
  654. <HR>
  655.  
  656. <A NAME="setFileName(java.lang.String)"><!-- --></A><H3>
  657. setFileName</H3>
  658. <PRE>
  659. void <B>setFileName</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;filename)
  660.                 throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  661. <DL>
  662. <DD>Set the filename associated with this part, if possible.
  663. Useful if this part represents an "attachment" that was
  664. loaded from a file.  The filename will usually be a simple
  665. name, not including directory components.
  666. <P>
  667. <DD><DL>
  668. <DT><B>Parameters:</B><DD><CODE>filename</CODE> - Filename to associate with this part
  669. <DT><B>Throws:</B>
  670. <DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying implementation
  671.                        does not support modification of this header
  672. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this Part is obtained
  673.                        from a READ_ONLY folder
  674. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  675. </DD>
  676. </DL>
  677. <HR>
  678.  
  679. <A NAME="getInputStream()"><!-- --></A><H3>
  680. getInputStream</H3>
  681. <PRE>
  682. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> <B>getInputStream</B>()
  683.                           throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A>,
  684.                                  <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  685. <DL>
  686. <DD>Return an input stream for this part's "content". Any
  687.  mail-specific transfer encodings will be decoded before the
  688.  input stream is provided. <p>
  689.  
  690.  This is typically a convenience method that just invokes
  691.  the DataHandler's <code>getInputStream()</code> method.
  692. <P>
  693. <DD><DL>
  694.  
  695. <DT><B>Returns:</B><DD>an InputStream
  696. <DT><B>Throws:</B>
  697. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - this is typically thrown by the
  698.                        DataHandler. Refer to the documentation for
  699.                        javax.activation.DataHandler for more details.
  700. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>See Also:</B><DD><A HREF="../../javax/mail/Part.html#getDataHandler()"><CODE>getDataHandler()</CODE></A>,
  701. <A HREF="http://java.sun.com/javase/technologies/desktop/javabeans/glasgow/javadocs/javax/activation/DataHandler.html?is-external=true#getInputStream()" title="class or interface in javax.activation"><CODE>DataHandler.getInputStream()</CODE></A></DL>
  702. </DD>
  703. </DL>
  704. <HR>
  705.  
  706. <A NAME="getDataHandler()"><!-- --></A><H3>
  707. getDataHandler</H3>
  708. <PRE>
  709. <A HREF="http://java.sun.com/javase/technologies/desktop/javabeans/glasgow/javadocs/javax/activation/DataHandler.html?is-external=true" title="class or interface in javax.activation">DataHandler</A> <B>getDataHandler</B>()
  710.                           throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  711. <DL>
  712. <DD>Return a DataHandler for the content within this part. The
  713. DataHandler allows clients to operate on as well as retrieve
  714. the content.
  715. <P>
  716. <DD><DL>
  717.  
  718. <DT><B>Returns:</B><DD>DataHandler for the content
  719. <DT><B>Throws:</B>
  720. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  721. </DD>
  722. </DL>
  723. <HR>
  724.  
  725. <A NAME="getContent()"><!-- --></A><H3>
  726. getContent</H3>
  727. <PRE>
  728. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>getContent</B>()
  729.                  throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A>,
  730.                         <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  731. <DL>
  732. <DD>Return the content as a Java object. The type of the returned
  733. object is of course dependent on the content itself. For example,
  734. the object returned for "text/plain" content is usually a String
  735. object. The object returned for a "multipart" content is always a
  736. Multipart subclass. For content-types that are  unknown to the
  737. DataHandler system, an input stream is returned as the content <p>
  738.  
  739. This is a convenience method that just invokes the DataHandler's
  740.  getContent() method
  741. <P>
  742. <DD><DL>
  743.  
  744. <DT><B>Returns:</B><DD>Object
  745. <DT><B>Throws:</B>
  746. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE>
  747. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - this is typically thrown by the
  748.                         DataHandler. Refer to the documentation for
  749.                         javax.activation.DataHandler for more details.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/javase/technologies/desktop/javabeans/glasgow/javadocs/javax/activation/DataHandler.html?is-external=true#getContent()" title="class or interface in javax.activation"><CODE>DataHandler.getContent()</CODE></A></DL>
  750. </DD>
  751. </DL>
  752. <HR>
  753.  
  754. <A NAME="setDataHandler(javax.activation.DataHandler)"><!-- --></A><H3>
  755. setDataHandler</H3>
  756. <PRE>
  757. void <B>setDataHandler</B>(<A HREF="http://java.sun.com/javase/technologies/desktop/javabeans/glasgow/javadocs/javax/activation/DataHandler.html?is-external=true" title="class or interface in javax.activation">DataHandler</A>&nbsp;dh)
  758.                     throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  759. <DL>
  760. <DD>This method provides the mechanism to set this part's content.
  761. The DataHandler wraps around the actual content.
  762. <P>
  763. <DD><DL>
  764. <DT><B>Parameters:</B><DD><CODE>dh</CODE> - The DataHandler for the content.
  765. <DT><B>Throws:</B>
  766. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE>
  767. <DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying implementation
  768.                        does not support modification of existing values
  769. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this Part is obtained
  770.                        from a READ_ONLY folder</DL>
  771. </DD>
  772. </DL>
  773. <HR>
  774.  
  775. <A NAME="setContent(java.lang.Object, java.lang.String)"><!-- --></A><H3>
  776. setContent</H3>
  777. <PRE>
  778. void <B>setContent</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;obj,
  779.                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;type)
  780.                throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  781. <DL>
  782. <DD>A convenience method for setting this part's content.  The part
  783.  internally wraps the content in a DataHandler. <p>
  784.  
  785.  Note that a DataContentHandler class for the specified type should
  786.  be available to the JavaMail implementation for this to work right.
  787.  i.e., to do <code>setContent(foobar, "application/x-foobar")</code>,
  788.  a DataContentHandler for "application/x-foobar" should be installed.
  789.  Refer to the Java Activation Framework for more information.
  790. <P>
  791. <DD><DL>
  792. <DT><B>Parameters:</B><DD><CODE>obj</CODE> - A java object.<DD><CODE>type</CODE> - MIME type of this object.
  793. <DT><B>Throws:</B>
  794. <DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying implementation
  795.                         does not support modification of existing values
  796. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this Part is obtained
  797.                         from a READ_ONLY folder
  798. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  799. </DD>
  800. </DL>
  801. <HR>
  802.  
  803. <A NAME="setText(java.lang.String)"><!-- --></A><H3>
  804. setText</H3>
  805. <PRE>
  806. void <B>setText</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;text)
  807.              throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  808. <DL>
  809. <DD>A convenience method that sets the given String as this
  810.  part's content with a MIME type of "text/plain".
  811. <P>
  812. <DD><DL>
  813. <DT><B>Parameters:</B><DD><CODE>text</CODE> - The text that is the Message's content.
  814. <DT><B>Throws:</B>
  815. <DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying
  816.                         implementation does not support modification of
  817.                         existing values
  818. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this Part is obtained
  819.                         from a READ_ONLY folder
  820. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  821. </DD>
  822. </DL>
  823. <HR>
  824.  
  825. <A NAME="setContent(javax.mail.Multipart)"><!-- --></A><H3>
  826. setContent</H3>
  827. <PRE>
  828. void <B>setContent</B>(<A HREF="../../javax/mail/Multipart.html" title="class in javax.mail">Multipart</A>&nbsp;mp)
  829.                 throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  830. <DL>
  831. <DD>This method sets the given Multipart object as this message's
  832. content.
  833. <P>
  834. <DD><DL>
  835. <DT><B>Parameters:</B><DD><CODE>mp</CODE> - The multipart object that is the Message's content
  836. <DT><B>Throws:</B>
  837. <DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying
  838.                         implementation  does not support modification of
  839.                         existing values
  840. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this Part is obtained
  841.                         from a READ_ONLY folder
  842. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  843. </DD>
  844. </DL>
  845. <HR>
  846.  
  847. <A NAME="writeTo(java.io.OutputStream)"><!-- --></A><H3>
  848. writeTo</H3>
  849. <PRE>
  850. void <B>writeTo</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;os)
  851.              throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A>,
  852.                     <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  853. <DL>
  854. <DD>Output a bytestream for this Part. This bytestream is
  855.  typically an aggregration of the Part attributes and
  856.  an appropriately encoded bytestream from its 'content'. <p>
  857.  
  858.  Classes that implement the Part interface decide on
  859.  the appropriate encoding algorithm to be used. <p>
  860.  
  861.  The bytestream is typically used for sending.
  862. <P>
  863. <DD><DL>
  864.  
  865. <DT><B>Throws:</B>
  866. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - if an error occurs writing to the
  867.                                         stream or if an error is generated
  868.                                         by the javax.activation layer.
  869. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE> - if an error occurs fetching the
  870.                                         data to be written<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/javase/technologies/desktop/javabeans/glasgow/javadocs/javax/activation/DataHandler.html?is-external=true#writeTo(java.io.OutputStream)" title="class or interface in javax.activation"><CODE>DataHandler.writeTo(java.io.OutputStream)</CODE></A></DL>
  871. </DD>
  872. </DL>
  873. <HR>
  874.  
  875. <A NAME="getHeader(java.lang.String)"><!-- --></A><H3>
  876. getHeader</H3>
  877. <PRE>
  878. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>getHeader</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;header_name)
  879.                    throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  880. <DL>
  881. <DD>Get all the headers for this header name. Returns <code>null</code>
  882.  if no headers for this header name are available.
  883. <P>
  884. <DD><DL>
  885. <DT><B>Parameters:</B><DD><CODE>header_name</CODE> - the name of this header
  886. <DT><B>Returns:</B><DD>the value fields for all headers with
  887.                                 this name
  888. <DT><B>Throws:</B>
  889. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  890. </DD>
  891. </DL>
  892. <HR>
  893.  
  894. <A NAME="setHeader(java.lang.String, java.lang.String)"><!-- --></A><H3>
  895. setHeader</H3>
  896. <PRE>
  897. void <B>setHeader</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;header_name,
  898.                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;header_value)
  899.                throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  900. <DL>
  901. <DD>Set the value for this header_name. Replaces all existing
  902.  header values with this new value.
  903. <P>
  904. <DD><DL>
  905. <DT><B>Parameters:</B><DD><CODE>header_name</CODE> - the name of this header<DD><CODE>header_value</CODE> - the value for this header
  906. <DT><B>Throws:</B>
  907. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE>
  908. <DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying
  909.                                 implementation does not support modification
  910.                                 of existing values
  911. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this Part is
  912.                                 obtained from a READ_ONLY folder</DL>
  913. </DD>
  914. </DL>
  915. <HR>
  916.  
  917. <A NAME="addHeader(java.lang.String, java.lang.String)"><!-- --></A><H3>
  918. addHeader</H3>
  919. <PRE>
  920. void <B>addHeader</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;header_name,
  921.                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;header_value)
  922.                throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  923. <DL>
  924. <DD>Add this value to the existing values for this header_name.
  925. <P>
  926. <DD><DL>
  927. <DT><B>Parameters:</B><DD><CODE>header_name</CODE> - the name of this header<DD><CODE>header_value</CODE> - the value for this header
  928. <DT><B>Throws:</B>
  929. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE>
  930. <DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying
  931.                                 implementation does not support modification
  932.                                 of existing values
  933. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this Part is
  934.                                 obtained from a READ_ONLY folder</DL>
  935. </DD>
  936. </DL>
  937. <HR>
  938.  
  939. <A NAME="removeHeader(java.lang.String)"><!-- --></A><H3>
  940. removeHeader</H3>
  941. <PRE>
  942. void <B>removeHeader</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;header_name)
  943.                   throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  944. <DL>
  945. <DD>Remove all headers with this name.
  946. <P>
  947. <DD><DL>
  948. <DT><B>Parameters:</B><DD><CODE>header_name</CODE> - the name of this header
  949. <DT><B>Throws:</B>
  950. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE>
  951. <DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying
  952.                                 implementation does not support modification
  953.                                 of existing values
  954. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this Part is
  955.                                 obtained from a READ_ONLY folder</DL>
  956. </DD>
  957. </DL>
  958. <HR>
  959.  
  960. <A NAME="getAllHeaders()"><!-- --></A><H3>
  961. getAllHeaders</H3>
  962. <PRE>
  963. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A> <B>getAllHeaders</B>()
  964.                           throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  965. <DL>
  966. <DD>Return all the headers from this part as an Enumeration of
  967.  Header objects.
  968. <P>
  969. <DD><DL>
  970.  
  971. <DT><B>Returns:</B><DD>enumeration of Header objects
  972. <DT><B>Throws:</B>
  973. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  974. </DD>
  975. </DL>
  976. <HR>
  977.  
  978. <A NAME="getMatchingHeaders(java.lang.String[])"><!-- --></A><H3>
  979. getMatchingHeaders</H3>
  980. <PRE>
  981. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A> <B>getMatchingHeaders</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;header_names)
  982.                                throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  983. <DL>
  984. <DD>Return matching headers from this part as an Enumeration of
  985.  Header objects.
  986. <P>
  987. <DD><DL>
  988.  
  989. <DT><B>Returns:</B><DD>enumeration of Header objects
  990. <DT><B>Throws:</B>
  991. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  992. </DD>
  993. </DL>
  994. <HR>
  995.  
  996. <A NAME="getNonMatchingHeaders(java.lang.String[])"><!-- --></A><H3>
  997. getNonMatchingHeaders</H3>
  998. <PRE>
  999. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A> <B>getNonMatchingHeaders</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;header_names)
  1000.                                   throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1001. <DL>
  1002. <DD>Return non-matching headers from this envelope as an Enumeration
  1003.  of Header objects.
  1004. <P>
  1005. <DD><DL>
  1006.  
  1007. <DT><B>Returns:</B><DD>enumeration of Header objects
  1008. <DT><B>Throws:</B>
  1009. <DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  1010. </DD>
  1011. </DL>
  1012. <!-- ========= END OF CLASS DATA ========= -->
  1013. <HR>
  1014.  
  1015.  
  1016. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  1017. <A NAME="navbar_bottom"><!-- --></A>
  1018. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  1019. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  1020. <TR>
  1021. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  1022. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  1023. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  1024.   <TR ALIGN="center" VALIGN="top">
  1025.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  1026.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  1027.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  1028.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Part.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  1029.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  1030.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  1031.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  1032.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  1033.   </TR>
  1034. </TABLE>
  1035. </TD>
  1036. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  1037. </EM>
  1038. </TD>
  1039. </TR>
  1040.  
  1041. <TR>
  1042. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  1043. &nbsp;<A HREF="../../javax/mail/NoSuchProviderException.html" title="class in javax.mail"><B>PREV CLASS</B></A>&nbsp;
  1044. &nbsp;<A HREF="../../javax/mail/PasswordAuthentication.html" title="class in javax.mail"><B>NEXT CLASS</B></A></FONT></TD>
  1045. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  1046.   <A HREF="../../index.html?javax/mail/Part.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  1047. &nbsp;<A HREF="Part.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  1048. &nbsp;<SCRIPT type="text/javascript">
  1049.   <!--
  1050.   if(window==top) {
  1051.     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
  1052.   }
  1053.   //-->
  1054. </SCRIPT>
  1055. <NOSCRIPT>
  1056.   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
  1057. </NOSCRIPT>
  1058.  
  1059.  
  1060. </FONT></TD>
  1061. </TR>
  1062. <TR>
  1063. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  1064.   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  1065. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  1066. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  1067. </TR>
  1068. </TABLE>
  1069. <A NAME="skip-navbar_bottom"></A>
  1070. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  1071.  
  1072. <HR>
  1073. Copyright &#169; 2009 <a href="http://www.sun.com">Sun Microsystems, Inc.</a>. All Rights Reserved.
  1074. </BODY>
  1075. </HTML>
  1076.