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:41 PST 2009 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  7. <TITLE>
  8. PreencodedMimeBodyPart (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="PreencodedMimeBodyPart (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/PreencodedMimeBodyPart.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/internet/ParseException.html" title="class in javax.mail.internet"><B>PREV CLASS</B></A>&nbsp;
  60. &nbsp;<A HREF="../../../javax/mail/internet/SharedInputStream.html" title="interface in javax.mail.internet"><B>NEXT CLASS</B></A></FONT></TD>
  61. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  62.   <A HREF="../../../index.html?javax/mail/internet/PreencodedMimeBodyPart.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  63. &nbsp;<A HREF="PreencodedMimeBodyPart.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="#fields_inherited_from_class_javax.mail.internet.MimeBodyPart">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  81. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  82. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&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.internet</FONT>
  93. <BR>
  94. Class PreencodedMimeBodyPart</H2>
  95. <PRE>
  96. <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">java.lang.Object</A>
  97.   <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../javax/mail/BodyPart.html" title="class in javax.mail">javax.mail.BodyPart</A>
  98.       <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../javax/mail/internet/MimeBodyPart.html" title="class in javax.mail.internet">javax.mail.internet.MimeBodyPart</A>
  99.           <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>javax.mail.internet.PreencodedMimeBodyPart</B>
  100. </PRE>
  101. <DL>
  102. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../javax/mail/internet/MimePart.html" title="interface in javax.mail.internet">MimePart</A>, <A HREF="../../../javax/mail/Part.html" title="interface in javax.mail">Part</A></DD>
  103. </DL>
  104. <HR>
  105. <DL>
  106. <DT><PRE>public class <B>PreencodedMimeBodyPart</B><DT>extends <A HREF="../../../javax/mail/internet/MimeBodyPart.html" title="class in javax.mail.internet">MimeBodyPart</A></DL>
  107. </PRE>
  108.  
  109. <P>
  110. A MimeBodyPart that handles data that has already been encoded.
  111.  This class is useful when constructing a message and attaching
  112.  data that has already been encoded (for example, using base64
  113.  encoding).  The data may have been encoded by the application,
  114.  or may have been stored in a file or database in encoded form.
  115.  The encoding is supplied when this object is created.  The data
  116.  is attached to this object in the usual fashion, by using the
  117.  <code>setText</code>, <code>setContent</code>, or
  118.  <code>setDataHandler</code> methods.
  119. <P>
  120.  
  121. <P>
  122. <DL>
  123. <DT><B>Since:</B></DT>
  124.   <DD>JavaMail 1.4</DD>
  125. </DL>
  126. <HR>
  127.  
  128. <P>
  129. <!-- =========== FIELD SUMMARY =========== -->
  130.  
  131. <A NAME="field_summary"><!-- --></A>
  132. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  133. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  134. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  135. <B>Field Summary</B></FONT></TH>
  136. </TR>
  137. </TABLE>
  138. &nbsp;<A NAME="fields_inherited_from_class_javax.mail.internet.MimeBodyPart"><!-- --></A>
  139. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  140. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  141. <TH ALIGN="left"><B>Fields inherited from class javax.mail.internet.<A HREF="../../../javax/mail/internet/MimeBodyPart.html" title="class in javax.mail.internet">MimeBodyPart</A></B></TH>
  142. </TR>
  143. <TR BGCOLOR="white" CLASS="TableRowColor">
  144. <TD><CODE><A HREF="../../../javax/mail/internet/MimeBodyPart.html#content">content</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#contentStream">contentStream</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#dh">dh</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#headers">headers</A></CODE></TD>
  145. </TR>
  146. </TABLE>
  147. &nbsp;<A NAME="fields_inherited_from_class_javax.mail.BodyPart"><!-- --></A>
  148. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  149. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  150. <TH ALIGN="left"><B>Fields inherited from class javax.mail.<A HREF="../../../javax/mail/BodyPart.html" title="class in javax.mail">BodyPart</A></B></TH>
  151. </TR>
  152. <TR BGCOLOR="white" CLASS="TableRowColor">
  153. <TD><CODE><A HREF="../../../javax/mail/BodyPart.html#parent">parent</A></CODE></TD>
  154. </TR>
  155. </TABLE>
  156. &nbsp;<A NAME="fields_inherited_from_class_javax.mail.Part"><!-- --></A>
  157. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  158. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  159. <TH ALIGN="left"><B>Fields inherited from interface javax.mail.<A HREF="../../../javax/mail/Part.html" title="interface in javax.mail">Part</A></B></TH>
  160. </TR>
  161. <TR BGCOLOR="white" CLASS="TableRowColor">
  162. <TD><CODE><A HREF="../../../javax/mail/Part.html#ATTACHMENT">ATTACHMENT</A>, <A HREF="../../../javax/mail/Part.html#INLINE">INLINE</A></CODE></TD>
  163. </TR>
  164. </TABLE>
  165. &nbsp;
  166. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  167.  
  168. <A NAME="constructor_summary"><!-- --></A>
  169. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  170. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  171. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  172. <B>Constructor Summary</B></FONT></TH>
  173. </TR>
  174. <TR BGCOLOR="white" CLASS="TableRowColor">
  175. <TD><CODE><B><A HREF="../../../javax/mail/internet/PreencodedMimeBodyPart.html#PreencodedMimeBodyPart(java.lang.String)">PreencodedMimeBodyPart</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;encoding)</CODE>
  176.  
  177. <BR>
  178. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a PreencodedMimeBodyPart that assumes the data is
  179.  encoded using the specified encoding.</TD>
  180. </TR>
  181. </TABLE>
  182. &nbsp;
  183. <!-- ========== METHOD SUMMARY =========== -->
  184.  
  185. <A NAME="method_summary"><!-- --></A>
  186. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  187. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  188. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  189. <B>Method Summary</B></FONT></TH>
  190. </TR>
  191. <TR BGCOLOR="white" CLASS="TableRowColor">
  192. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  193. <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>
  194. <TD><CODE><B><A HREF="../../../javax/mail/internet/PreencodedMimeBodyPart.html#getEncoding()">getEncoding</A></B>()</CODE>
  195.  
  196. <BR>
  197. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the content transfer encoding specified when
  198.  this object was created.</TD>
  199. </TR>
  200. <TR BGCOLOR="white" CLASS="TableRowColor">
  201. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  202. <CODE>protected &nbsp;void</CODE></FONT></TD>
  203. <TD><CODE><B><A HREF="../../../javax/mail/internet/PreencodedMimeBodyPart.html#updateHeaders()">updateHeaders</A></B>()</CODE>
  204.  
  205. <BR>
  206. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Force the <code>Content-Transfer-Encoding</code> header to use
  207.  the encoding that was specified when this object was created.</TD>
  208. </TR>
  209. <TR BGCOLOR="white" CLASS="TableRowColor">
  210. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  211. <CODE>&nbsp;void</CODE></FONT></TD>
  212. <TD><CODE><B><A HREF="../../../javax/mail/internet/PreencodedMimeBodyPart.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>
  213.  
  214. <BR>
  215. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Output the body part as an RFC 822 format stream.</TD>
  216. </TR>
  217. </TABLE>
  218. &nbsp;<A NAME="methods_inherited_from_class_javax.mail.internet.MimeBodyPart"><!-- --></A>
  219. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  220. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  221. <TH ALIGN="left"><B>Methods inherited from class javax.mail.internet.<A HREF="../../../javax/mail/internet/MimeBodyPart.html" title="class in javax.mail.internet">MimeBodyPart</A></B></TH>
  222. </TR>
  223. <TR BGCOLOR="white" CLASS="TableRowColor">
  224. <TD><CODE><A HREF="../../../javax/mail/internet/MimeBodyPart.html#addHeader(java.lang.String, java.lang.String)">addHeader</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#addHeaderLine(java.lang.String)">addHeaderLine</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#attachFile(java.io.File)">attachFile</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#attachFile(java.lang.String)">attachFile</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getAllHeaderLines()">getAllHeaderLines</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getAllHeaders()">getAllHeaders</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getContent()">getContent</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getContentID()">getContentID</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getContentLanguage()">getContentLanguage</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getContentMD5()">getContentMD5</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getContentStream()">getContentStream</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getContentType()">getContentType</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getDataHandler()">getDataHandler</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getDescription()">getDescription</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getDisposition()">getDisposition</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getFileName()">getFileName</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getHeader(java.lang.String)">getHeader</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getHeader(java.lang.String, java.lang.String)">getHeader</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getInputStream()">getInputStream</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getLineCount()">getLineCount</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getMatchingHeaderLines(java.lang.String[])">getMatchingHeaderLines</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getMatchingHeaders(java.lang.String[])">getMatchingHeaders</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getNonMatchingHeaderLines(java.lang.String[])">getNonMatchingHeaderLines</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getNonMatchingHeaders(java.lang.String[])">getNonMatchingHeaders</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getRawInputStream()">getRawInputStream</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#getSize()">getSize</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#isMimeType(java.lang.String)">isMimeType</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#removeHeader(java.lang.String)">removeHeader</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#saveFile(java.io.File)">saveFile</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#saveFile(java.lang.String)">saveFile</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setContent(javax.mail.Multipart)">setContent</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setContent(java.lang.Object, java.lang.String)">setContent</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setContentID(java.lang.String)">setContentID</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setContentLanguage(java.lang.String[])">setContentLanguage</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setContentMD5(java.lang.String)">setContentMD5</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setDataHandler(javax.activation.DataHandler)">setDataHandler</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setDescription(java.lang.String, java.lang.String)">setDescription</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setDisposition(java.lang.String)">setDisposition</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setFileName(java.lang.String)">setFileName</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setHeader(java.lang.String, java.lang.String)">setHeader</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setText(java.lang.String)">setText</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setText(java.lang.String, java.lang.String)">setText</A>, <A HREF="../../../javax/mail/internet/MimeBodyPart.html#setText(java.lang.String, java.lang.String, java.lang.String)">setText</A></CODE></TD>
  225. </TR>
  226. </TABLE>
  227. &nbsp;<A NAME="methods_inherited_from_class_javax.mail.BodyPart"><!-- --></A>
  228. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  229. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  230. <TH ALIGN="left"><B>Methods inherited from class javax.mail.<A HREF="../../../javax/mail/BodyPart.html" title="class in javax.mail">BodyPart</A></B></TH>
  231. </TR>
  232. <TR BGCOLOR="white" CLASS="TableRowColor">
  233. <TD><CODE><A HREF="../../../javax/mail/BodyPart.html#getParent()">getParent</A></CODE></TD>
  234. </TR>
  235. </TABLE>
  236. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  237. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  238. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  239. <TH ALIGN="left"><B>Methods inherited from class java.lang.<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></TH>
  240. </TR>
  241. <TR BGCOLOR="white" CLASS="TableRowColor">
  242. <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  243. </TR>
  244. </TABLE>
  245. &nbsp;
  246. <P>
  247.  
  248. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  249.  
  250. <A NAME="constructor_detail"><!-- --></A>
  251. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  252. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  253. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  254. <B>Constructor Detail</B></FONT></TH>
  255. </TR>
  256. </TABLE>
  257.  
  258. <A NAME="PreencodedMimeBodyPart(java.lang.String)"><!-- --></A><H3>
  259. PreencodedMimeBodyPart</H3>
  260. <PRE>
  261. public <B>PreencodedMimeBodyPart</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;encoding)</PRE>
  262. <DL>
  263. <DD>Create a PreencodedMimeBodyPart that assumes the data is
  264.  encoded using the specified encoding.  The encoding must
  265.  be a MIME supported Content-Transfer-Encoding.
  266. <P>
  267. </DL>
  268.  
  269. <!-- ============ METHOD DETAIL ========== -->
  270.  
  271. <A NAME="method_detail"><!-- --></A>
  272. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  273. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  274. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  275. <B>Method Detail</B></FONT></TH>
  276. </TR>
  277. </TABLE>
  278.  
  279. <A NAME="getEncoding()"><!-- --></A><H3>
  280. getEncoding</H3>
  281. <PRE>
  282. public <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>getEncoding</B>()
  283.                    throws <A HREF="../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  284. <DL>
  285. <DD>Returns the content transfer encoding specified when
  286.  this object was created.
  287. <P>
  288. <DD><DL>
  289. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/mail/internet/MimePart.html#getEncoding()">getEncoding</A></CODE> in interface <CODE><A HREF="../../../javax/mail/internet/MimePart.html" title="interface in javax.mail.internet">MimePart</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/mail/internet/MimeBodyPart.html#getEncoding()">getEncoding</A></CODE> in class <CODE><A HREF="../../../javax/mail/internet/MimeBodyPart.html" title="class in javax.mail.internet">MimeBodyPart</A></CODE></DL>
  290. </DD>
  291. <DD><DL>
  292.  
  293. <DT><B>Returns:</B><DD>content-transfer-encoding
  294. <DT><B>Throws:</B>
  295. <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/internet/MimeBodyPart.html#headers"><CODE>MimeBodyPart.headers</CODE></A></DL>
  296. </DD>
  297. </DL>
  298. <HR>
  299.  
  300. <A NAME="writeTo(java.io.OutputStream)"><!-- --></A><H3>
  301. writeTo</H3>
  302. <PRE>
  303. public 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)
  304.              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>,
  305.                     <A HREF="../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  306. <DL>
  307. <DD>Output the body part as an RFC 822 format stream.
  308. <P>
  309. <DD><DL>
  310. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/mail/Part.html#writeTo(java.io.OutputStream)">writeTo</A></CODE> in interface <CODE><A HREF="../../../javax/mail/Part.html" title="interface in javax.mail">Part</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/mail/internet/MimeBodyPart.html#writeTo(java.io.OutputStream)">writeTo</A></CODE> in class <CODE><A HREF="../../../javax/mail/internet/MimeBodyPart.html" title="class in javax.mail.internet">MimeBodyPart</A></CODE></DL>
  311. </DD>
  312. <DD><DL>
  313.  
  314. <DT><B>Throws:</B>
  315. <DD><CODE><A HREF="../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE>
  316. <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
  317.                                 stream or if an error is generated
  318.                                 by the javax.activation layer.<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>
  319. </DD>
  320. </DL>
  321. <HR>
  322.  
  323. <A NAME="updateHeaders()"><!-- --></A><H3>
  324. updateHeaders</H3>
  325. <PRE>
  326. protected void <B>updateHeaders</B>()
  327.                       throws <A HREF="../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  328. <DL>
  329. <DD>Force the <code>Content-Transfer-Encoding</code> header to use
  330.  the encoding that was specified when this object was created.
  331. <P>
  332. <DD><DL>
  333. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/mail/internet/MimeBodyPart.html#updateHeaders()">updateHeaders</A></CODE> in class <CODE><A HREF="../../../javax/mail/internet/MimeBodyPart.html" title="class in javax.mail.internet">MimeBodyPart</A></CODE></DL>
  334. </DD>
  335. <DD><DL>
  336.  
  337. <DT><B>Throws:</B>
  338. <DD><CODE><A HREF="../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL>
  339. </DD>
  340. </DL>
  341. <!-- ========= END OF CLASS DATA ========= -->
  342. <HR>
  343.  
  344.  
  345. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  346. <A NAME="navbar_bottom"><!-- --></A>
  347. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  348. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  349. <TR>
  350. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  351. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  352. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  353.   <TR ALIGN="center" VALIGN="top">
  354.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  355.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  356.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  357.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/PreencodedMimeBodyPart.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  358.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  359.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  360.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  361.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  362.   </TR>
  363. </TABLE>
  364. </TD>
  365. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  366. </EM>
  367. </TD>
  368. </TR>
  369.  
  370. <TR>
  371. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  372. &nbsp;<A HREF="../../../javax/mail/internet/ParseException.html" title="class in javax.mail.internet"><B>PREV CLASS</B></A>&nbsp;
  373. &nbsp;<A HREF="../../../javax/mail/internet/SharedInputStream.html" title="interface in javax.mail.internet"><B>NEXT CLASS</B></A></FONT></TD>
  374. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  375.   <A HREF="../../../index.html?javax/mail/internet/PreencodedMimeBodyPart.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  376. &nbsp;<A HREF="PreencodedMimeBodyPart.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  377. &nbsp;<SCRIPT type="text/javascript">
  378.   <!--
  379.   if(window==top) {
  380.     document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  381.   }
  382.   //-->
  383. </SCRIPT>
  384. <NOSCRIPT>
  385.   <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  386. </NOSCRIPT>
  387.  
  388.  
  389. </FONT></TD>
  390. </TR>
  391. <TR>
  392. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  393.   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.mail.internet.MimeBodyPart">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  394. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  395. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  396. </TR>
  397. </TABLE>
  398. <A NAME="skip-navbar_bottom"></A>
  399. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  400.  
  401. <HR>
  402. Copyright &#169; 2009 <a href="http://www.sun.com">Sun Microsystems, Inc.</a>. All Rights Reserved.
  403. </BODY>
  404. </HTML>
  405.