/javamail/dsn/src/main/java/com/sun/mail/dsn/ |
H A D | MessageHeaders.java | 51 * no content. Used to represent the MIME type text/rfc822-headers. 64 content = new byte[0]; 75 content = new byte[0]; 87 content = new byte[0]; 99 return new ByteArrayInputStream(content); 103 return new ByteArrayInputStream(content); 107 * Can't set any content for a MessageHeaders object. 112 throw new MessagingException("Can't set content for MessageHeaders");
|
H A D | MultipartReport.java | 51 * A multipart/report message content, as defined in 53 * A multipart/report content is a container for mail reports 78 * Construct a multipart/report object with no content. 204 throw new MessagingException("Exception getting text content", ex); 261 Object content = bp.getContent(); 262 if (!(content instanceof Report)) 264 return (Report)content;
|
/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);
|
H A D | MSMessage.java | 109 * Load the content into a byte[]. 118 content = bos.toByteArray(); 133 * Fall back to scanning the content. 134 * We scan the content until we find a sequence that looks 138 for (int i = 0; i < content.length; i++) { 139 int b = content[i] & 0xff; // mask higher byte 142 if ((i + 5) < content.length) { 144 String s = toString(content, i+1, i+6); 156 dh = new DataHandler(new MSMultipartDataSource(this, content)); 166 * Return 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/mail/src/test/java/com/sun/mail/handlers/ |
H A D | TextXmlTest.java | 84 Object content = dch.getContent(ds); 85 assertEquals(String.class, content.getClass()); 86 assertEquals(xml, (String)content); 87 content = dch.getTransferData(df, ds); 88 assertEquals(String.class, content.getClass()); 89 assertEquals(xml, (String)content); 99 Object content = dch.getTransferData(df, ds); 100 assertEquals(StreamSource.class, content.getClass()); 101 String sc = streamToString(((StreamSource)content).getInputStream());
|
/javamail/mail/src/test/java/javax/mail/internet/ |
H A D | NonAsciiBoundaryTest.java | 75 String content = 90 return new MimeMessage(s, new AsciiStringInputStream(content, false));
|
H A D | AllowEncodedMessages.java | 87 String content = 102 return new MimeMessage(s, new AsciiStringInputStream(content));
|
H A D | MimeMultipartPropertyTest.java | 186 String content = 203 return new MimeMessage(s, new AsciiStringInputStream(content)); 210 String content = 215 return new MimeMessage(s, new AsciiStringInputStream(content));
|
H A D | ModifyMessageTest.java | 133 // make sure other content is not changed or re-encoded 143 String content = 159 return new MimeMessage(s, new AsciiStringInputStream(content)); 163 String content = 189 return new MimeMessage(s, new AsciiStringInputStream(content));
|
H A D | RestrictEncodingTest.java | 111 String content = 130 return new MimeMessage(s, new AsciiStringInputStream(content));
|
H A D | MimeUtilityTest.java | 105 * Test that getEncoding returns a valid value even if the content 112 String content = "bad-content-type"; 115 type = new ContentType(content); 123 ByteArrayDataSource bads = new ByteArrayDataSource("", content);
|
H A D | MimeBodyPartTest.java | 192 String content = 206 return new MimeMessage(s, new AsciiStringInputStream(content));
|
H A D | MimeMessageTest.java | 228 String content = 236 return new MimeMessage(s, new AsciiStringInputStream(content));
|
/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/pop3/ |
H A D | POP3MessageTest.java | 113 * Test that we can read the content of a message twice. 147 Object content = p.getContent(); 148 if (content instanceof Multipart) { 149 Multipart mp = (Multipart)content;
|
/javamail/mail/src/test/java/com/sun/mail/util/ |
H A D | ContentTypeCleaner.java | 108 String content = 130 return new MimeMessage(s, new AsciiStringInputStream(content));
|
/javamail/taglib/src/main/java/demo/ |
H A D | MessageInfo.java | 58 Object content = message.getContent(); 60 return (String)content; 70 Multipart mp = (Multipart)content;
|
/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 | 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...] |
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 | 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...] |
/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
|
/javamail/mail/src/main/java/com/sun/mail/pop3/ |
H A D | POP3Message.java | 101 * Return the size of the content of this message in bytes. 105 * content size and may or may not account for any transfer 106 * encoding of the content. <p> 108 * @return size of content in bytes 123 * which may load the content as a side effect). 124 * If the content is loaded as a side effect of 152 * the POP3 RETR command. If skipHeader is true, just the content 194 * in the content array and return the body. 201 * the content, skipping over the header until we come to 248 throw new MessagingException("error fetching POP3 content", e [all...] |