/javamail/outlook/src/main/java/ |
H A D | MSMultipartDataSource.java | 47 public MSMultipartDataSource(MimePart part, byte[] content) argument 73 int pos = startsWith(content, 0, "begin"); 78 parts.add(new MSBodyPart(content, 0, pos, "inline", "7bit")); 85 start = startsWith(content, pos, "begin"); 88 pos = startsWith(content, start, "end"); 92 parts.add(new MSBodyPart(content, start, pos, 110 private int startsWith(byte[] content, int start, String seq) { argument 113 for (int i = start; i < content.length; i++) { 115 if ((i + slen) < content.length) { 116 String s = MSMessage.toString(content, [all...] |
H A D | MSBodyPart.java | 53 public MSBodyPart(byte[] content, int start, int end, argument 55 this.content = content; 85 return new ByteArrayInputStream(content, start, end - start);
|
/javamail/client/src/main/java/ |
H A D | MultipartViewer.java | 61 // get the content, and hope it is a Multipart Object 62 Object content = dh.getContent(); 63 if (content instanceof Multipart) { 64 setupDisplay((Multipart)content); 66 setupErrorDisplay(content); 103 // for each one we create a button with the content type 156 protected void setupErrorDisplay(Object content) { argument 159 if (content == null) 162 error = "Object not of type Multipart, content class = " + 163 content [all...] |
/javamail/mail/src/test/java/com/sun/mail/imap/protocol/ |
H A D | IMAPProtocolTest.java | 55 private static final String content = "aXQncyBteSB0ZXN0IG1haWwNCg0K\r\n"; field in class:IMAPProtocolTest 68 "{" + content.length() + "}\r\n" + content + 91 assertEquals("getByteArray.getNewBytes", content, result); 96 assertEquals("getByteArrayInputStream", content, result); 109 BODY b = p.fetchBody(1, "1.1", 0, content.length(), null); 114 assertEquals("getByteArray.getNewBytes", content, result); 119 assertEquals("getByteArrayInputStream", content, result);
|
/javamail/mbox/src/main/java/com/sun/mail/mbox/ |
H A D | SunV3BodyPart.java | 60 * content bytes. <p> 65 * @param content bytes representing the body of this part. 67 public SunV3BodyPart(InternetHeaders headers, byte[] content) argument 69 super(headers, content); 73 * Return the size of the content of this BodyPart in bytes. 77 * content size and may or may not account for any transfer 78 * encoding of the content. <p> 92 * Return the number of lines for the content of this Part. 96 * content length and may or may not account for any transfer 97 * encoding of the content [all...] |
/javamail/mail/src/main/java/javax/mail/internet/ |
H A D | MimeMultipart.java | 64 * content. The intent is that service providers, mail JavaBean writers 103 * multipart content with no body parts. The 185 * is created. Its content type is set to "multipart/mixed". 205 * @param subtype the MIME content subtype 237 * @param subtype the MIME content subtype 261 * "boundary" parameter from the content type of this DataSource, 444 * multipart was seen. When parsing multipart content, 773 * Read and save the content bytes in buf. 996 * @param content the content o 1001 createMimeBodyPart(InternetHeaders headers, byte[] content) argument [all...] |
H A D | MimeBodyPart.java | 108 * The DataHandler object representing this Part's content. 113 * Byte array that holds the bytes of the content of this Part. 115 protected byte[] content; field in class:MimeBodyPart 121 * the content of this body part. In this case, <code>content</code> 135 * If our content is a Multipart of Message object, we save it 187 content = ASCIIUtility.getBytes(is); 197 * content bytes. <p> 202 * @param content bytes representing the body of this part. 205 public MimeBodyPart(InternetHeaders headers, byte[] content) argument [all...] |
H A D | MimeMessage.java | 59 * attributes and content. <p> 106 * The DataHandler object representing this Message's content. 111 * Byte array that holds the bytes of this Message's content. 113 protected byte[] content; field in class:MimeMessage 119 * the content of this message. In this case, <code>content</code> 140 * <code>content</code> array is assumed to be valid and is used 163 * If our content is a Multipart or Message object, we save it 221 * Constructs a new MimeMessage with content initialized from the 228 * @param source the message to copy content fro 307 MimeMessage(Folder folder, InternetHeaders headers, byte[] content, int msgnum) argument [all...] |
/javamail/mail/src/main/java/com/sun/mail/imap/ |
H A D | IMAPBodyPart.java | 80 // generate content-type 206 throw new MessagingException("No content"); 252 // The CRLF separator between header and content 281 * part content in one operation so we have to fake it by 282 * concatenating the header stream and the content stream. 308 public void setDataHandler(DataHandler content) throws MessagingException { argument
|
H A D | IMAPMessage.java | 96 private Boolean peek; // use BODY.PEEK when fetching content? 510 * Get the content language. 557 // generate content-type from BODYSTRUCTURE 733 throw new MessagingException("No content"); 748 // generate content-type from BODYSTRUCTURE 754 /* Special-case Multipart and Nested content. All other 779 public void setDataHandler(DataHandler content) argument 830 throw new MessagingException("No content"); 1046 * fetching message content. This overrides the default 1058 * fetching message content [all...] |