Searched refs:part (Results 1 - 19 of 19) sorted by relevance

/javamail/mail/src/main/java/javax/mail/internet/
H A DMimePartDataSource.java65 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 DMimeBodyPart.java50 * 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...]
H A DMimeMultipart.java57 * 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...]
/javamail/mail/src/main/java/javax/mail/
H A DMessageContext.java58 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 DMultipart.java163 * 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/taglib/src/main/java/demo/
H A DAttachmentInfo.java44 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 DIMAPMultipartDataSource.java61 protected IMAPMultipartDataSource(MimePart part, BODYSTRUCTURE[] bs, argument
63 super(part);
/javamail/webapp/src/main/java/demo/
H A DAttachmentServlet.java44 * This servlet gets the input stream for a given msg part and
60 int partNum = Integer.parseInt(request.getParameter("part"));
69 Part part = multipart.getBodyPart(partNum);
71 String sct = part.getContentType();
73 out.println("invalid part");
79 InputStream is = part.getInputStream();
/javamail/mail/src/test/java/javax/mail/internet/
H A DMimeMultipartParseTest.java100 * Construct a multipart message with a part of the
112 byte[] part = new byte[size];
116 part[i] = (byte)'\r';
118 part[i] = (byte)'\n';
120 part[i] = (byte)data.charAt((j + i / 64) % 62);
123 new ByteArrayDataSource(part, "text/plain")));
147 // verify that the part content is correct
H A DMimeBodyPartTest.java91 // create a message and extract the DataHandler for a part
109 assertEquals("test part", getString(mbp.getInputStream()));
119 // create a message and extract the DataHandler for a part
138 assertEquals("test part", getString(mbp.getInputStream()));
148 String part =
153 InputStream in = new ByteArrayInputStream(part.getBytes("iso-8859-1"));
177 String part =
181 InputStream in = new ByteArrayInputStream(part.getBytes("iso-8859-1"));
202 "test part\n" +
/javamail/outlook/src/main/java/
H A DMSMultipartDataSource.java47 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/dsn/src/main/java/com/sun/mail/dsn/
H A DMultipartReport.java181 * 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/mail/src/test/java/com/sun/mail/util/
H A DWriteTimeoutSocketTest.java224 byte[] part = new byte[size];
228 part[i] = (byte)'\r';
230 part[i] = (byte)'\n';
232 part[i] = (byte)data.charAt((j + i / 64) % 62);
235 new ByteArrayDataSource(part, "text/plain")));
/javamail/servlet/src/main/java/
H A DJavaMailServlet.java199 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/client/src/main/java/
H A DMultipartViewer.java71 // 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/mail/src/main/java/com/sun/mail/util/logging/
H A DMailHandler.java1790 * 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...]
/javamail/mail/src/main/java/com/sun/mail/smtp/
H A DSMTPTransport.java879 * 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/test/java/com/sun/mail/util/logging/
H A DMailHandlerTest.java2633 MimePart part = (MimePart) mp.getBodyPart(i);
2635 assertEquals(lang, part.getHeader("Accept-Language", null));
2707 MimePart part;
2709 part = (MimePart) mp.getBodyPart(0);
2710 lang = part.getContentLanguage();
2713 assertEquals(LogManagerProperties.toLanguageTag(l), part.getHeader("Accept-Language", null));
2803 MimePart part;
2805 part = (MimePart) mp.getBodyPart(0);
2806 lang = part.getContentLanguage();
2809 assertEquals(LogManagerProperties.toLanguageTag(l), part
[all...]
/javamail/
H A Dmail.sig259 hfds part
1038 fld protected javax.mail.internet.MimePart part

Completed in 97 milliseconds