/javamail/mail/src/main/java/javax/mail/ |
H A D | MessageContext.java | 58 private Part part; field in class:MessageContext 63 * @param part the Part 65 public MessageContext(Part part) { argument 66 this.part = part; 75 return part; 87 return getMessage(part);
|
H A D | Multipart.java | 163 * Remove the specified part from the multipart message. 164 * Shifts all the parts after the removed part down one. 166 * @param part The part to remove 167 * @return true if part removed, false otherwise 173 public synchronized boolean removeBodyPart(BodyPart part) argument 176 throw new MessagingException("No such body part"); 178 boolean ret = parts.removeElement(part); 179 part.setParent(null); 184 * Remove the part a 216 addBodyPart(BodyPart part) argument 240 addBodyPart(BodyPart part, int index) argument [all...] |
/javamail/outlook/src/main/java/ |
H A D | MSMultipartDataSource.java | 47 public MSMultipartDataSource(MimePart part, byte[] content) argument 49 super(part); 60 * many lines are in each body part. For example: 77 if (pos > 0) // we have an unencoded main body part 79 else // no main body part
|
/javamail/client/src/main/java/ |
H A D | MultipartViewer.java | 71 // we display the first body part in a main frame on the left, and then 80 // get the first part 174 public AttachmentViewer(BodyPart part) { argument 175 bp = part;
|
/javamail/taglib/src/main/java/demo/ |
H A D | AttachmentInfo.java | 44 private Part part; field in class:AttachmentInfo 53 if ((contentType = part.getContentType()) == null) 54 return "invalid part"; 64 return (String)part.getContent(); 74 if ((description = part.getDescription()) != null) 85 if ((filename = part.getFileName()) != null) 102 return (part.getDescription() != null); 109 return (part.getFileName() != null); 116 return part.isMimeType(mimeType); 123 if (part 132 setPart(int num, Part part) argument [all...] |
/javamail/mail/src/main/java/com/sun/mail/imap/ |
H A D | IMAPMultipartDataSource.java | 61 protected IMAPMultipartDataSource(MimePart part, BODYSTRUCTURE[] bs, argument 63 super(part);
|
/javamail/mail/src/main/java/javax/mail/internet/ |
H A D | MimePartDataSource.java | 65 protected MimePart part; field in class:MimePartDataSource 72 * @param part the MimePart 74 public MimePartDataSource(MimePart part) { argument 75 this.part = part; 98 if (part instanceof MimeBodyPart) 99 is = ((MimeBodyPart)part).getContentStream(); 100 else if (part instanceof MimeMessage) 101 is = ((MimeMessage)part).getContentStream(); 103 throw new MessagingException("Unknown part"); [all...] |
H A D | MimeMultipart.java | 57 * is "multipart" (by invoking the part's <code>getContent()</code> method) 58 * or it can be created by a client as part of creating a new MimeMessage. <p> 84 * boundaries are not considered an error and the final body part 106 * When writing out such a MimeMultipart, a single empty part will be 263 * boundary and creates MimeBodyParts for each part of the stream. 353 * Returns null if the part is not found. 355 * @param CID the ContentID of the desired part 365 MimeBodyPart part = (MimeBodyPart)getBodyPart(i); 366 String s = part.getContentID(); 368 return part; 384 removeBodyPart(BodyPart part) argument 416 addBodyPart(BodyPart part) argument 436 addBodyPart(BodyPart part, int index) argument [all...] |
H A D | MimeBodyPart.java | 50 * This class represents a MIME body part. It implements the 56 * and store the headers of that body part. 118 * If the data for this body part was supplied by an 121 * the content of this body part. In this case, <code>content</code> 130 * of this body part. 150 * This body part maybe filled in by a client constructing a multipart 162 * beginning of a valid MIME body part and must terminate at the end 163 * of that body part. <p> 167 * is that the MimeMultipart parser will extract each body part's bytes 171 * @param is the body part Inpu 1156 isMimeType(MimePart part, String mimeType) argument 1174 setText(MimePart part, String text, String charset, String subtype) argument 1187 getDisposition(MimePart part) argument 1197 setDisposition(MimePart part, String disposition) argument 1217 getDescription(MimePart part) argument 1232 setDescription(MimePart part, String description, String charset) argument 1247 getFileName(MimePart part) argument 1277 setFileName(MimePart part, String name) argument 1330 getContentLanguage(MimePart part) argument 1363 setContentLanguage(MimePart part, String[] languages) argument 1380 getEncoding(MimePart part) argument 1414 setEncoding(MimePart part, String encoding) argument 1424 restrictEncoding(MimePart part, String encoding) argument 1457 updateHeaders(MimePart part) argument 1598 invalidateContentHeaders(MimePart part) argument 1604 writeTo(MimePart part, OutputStream os, String[] ignoreList) argument 1671 MimePart part; field in class:MimeBodyPart.MimePartDataHandler 1672 MimePartDataHandler(MimePart part) argument [all...] |
/javamail/dsn/src/main/java/com/sun/mail/dsn/ |
H A D | MultipartReport.java | 181 * all. If the text body part of this multipart/report object is 183 * and contains a text/plain part, the text from that part is 211 * part containing the specified text. 223 * Return the body part containing the message to be presented to 224 * the user, usually just a text/plain part. 226 * @return the body part containing the text 235 * Set the body part containing the text to be presented to the 236 * user. Usually this a text/plain part, but it might also be 237 * a text/html part o 376 setBodyPart(BodyPart part, int index) argument 407 removeBodyPart(BodyPart part) argument 431 addBodyPart(BodyPart part) argument 449 addBodyPart(BodyPart part, int index) argument [all...] |
/javamail/servlet/src/main/java/ |
H A D | JavaMailServlet.java | 199 String part = req.getParameter("part"); 208 if (part == null) { 214 // display part "part" in message "msgStr" 215 partNum = Integer.parseInt(part); 288 * This method displays a message part. <code>text/plain</code> 291 * brings up the part in a separate page. 293 private void displayPart(MailUserData mud, int msgNum, Part part, argument 303 String sct = part [all...] |
/javamail/mail/src/main/java/com/sun/mail/smtp/ |
H A D | SMTPTransport.java | 879 * part of the handshake. 1494 * If the Part is a text part and has a Content-Transfer-Encoding 1496 * "8bit" encoding, change the encoding to "8bit". If the part is 1503 private boolean convertTo8Bit(MimePart part) { argument 1506 if (part.isMimeType("text/*")) { 1507 String enc = part.getEncoding(); 1512 is = part.getInputStream(); 1523 part.setContent(part.getContent(), 1524 part [all...] |
/javamail/mail/src/main/java/com/sun/mail/util/logging/ |
H A D | MailHandler.java | 1790 * Set the content for a part using the encoding assigned to the handler. 1791 * @param part the part to assign. 1796 private void setContent(MimeBodyPart part, CharSequence buf, String type) throws MessagingException { argument 1802 part.setDataHandler(new DataHandler(source)); 1805 part.setText(buf.toString(), charset); 1808 part.setText(buf.toString(), MimeUtility.mimeCharset(charset)); 2840 * call. Therefore, a null part at an index means that the head is 2846 * The buffers are lazily created when the part requires a getHead. 2913 } else { //Belongs to no mime part 3538 appendFileName(final Part part, final String chunk) argument 3554 appendFileName0(final Part part, String chunk) argument [all...] |