Searched refs:body (Results 1 - 25 of 59) sorted by relevance

123

/packages/apps/Email/src/org/apache/james/mime4j/field/
H A DUnstructuredField.java34 protected UnstructuredField(String name, String body, String raw, String value) { argument
35 super(name, body, raw);
44 public Field parse(final String name, final String body, final String raw) { argument
45 final String value = DecoderUtil.decodeEncodedWords(body);
46 return new UnstructuredField(name, body, raw, value);
H A DFieldParser.java20 Field parse(final String name, final String body, final String raw); argument
H A DField.java60 private final String body; field in class:Field
63 protected Field(final String name, final String body, final String raw) { argument
65 this.body = body;
101 String body = unfolded.substring(fieldMatcher.end());
102 if (body.length() > 0 && body.charAt(0) == ' ') {
103 body = body.substring(1);
106 return parser.parse(name, body, ra
[all...]
H A DDateTimeField.java38 protected DateTimeField(String name, String body, String raw, Date date, ParseException parseException) { argument
39 super(name, body, raw);
55 public Field parse(final String name, String body, final String raw) { argument
59 body = LogUtils.cleanUpMimeDate(body);
62 date = DateTime.parse(body).getDate();
66 log.debug("Parsing value '" + body + "': "+ e.getMessage());
70 return new DateTimeField(name, body, raw, date, parseException);
H A DContentTransferEncodingField.java54 protected ContentTransferEncodingField(String name, String body, String raw, String encoding) { argument
55 super(name, body, raw);
83 public Field parse(final String name, final String body, final String raw) { argument
84 final String encoding = body.trim().toLowerCase();
85 return new ContentTransferEncodingField(name, body, raw, encoding);
H A DAddressListField.java33 protected AddressListField(String name, String body, String raw, AddressList addressList, ParseException parseException) { argument
34 super(name, body, raw);
50 public Field parse(final String name, final String body, final String raw) { argument
54 addressList = AddressList.parse(body);
58 log.debug("Parsing value '" + body + "': "+ e.getMessage());
62 return new AddressListField(name, body, raw, addressList, parseException);
H A DMailboxField.java35 protected MailboxField(final String name, final String body, final String raw, final Mailbox mailbox, final ParseException parseException) { argument
36 super(name, body, raw);
52 public Field parse(final String name, final String body, final String raw) { argument
56 MailboxList mailboxList = AddressList.parse(body).flatten();
63 log.debug("Parsing value '" + body + "': "+ e.getMessage());
67 return new MailboxField(name, body, raw, mailbox, parseException);
H A DMailboxListField.java35 protected MailboxListField(final String name, final String body, final String raw, final MailboxList mailboxList, final ParseException parseException) { argument
36 super(name, body, raw);
52 public Field parse(final String name, final String body, final String raw) { argument
56 mailboxList = AddressList.parse(body).flatten();
60 log.debug("Parsing value '" + body + "': "+ e.getMessage());
64 return new MailboxListField(name, body, raw, mailboxList, parseException);
H A DDelegatingFieldParser.java43 public Field parse(final String name, final String body, final String raw) { argument
45 return parser.parse(name, body, raw);
H A DContentTypeField.java75 protected ContentTypeField(String name, String body, String raw, String mimeType, Map<String, String> parameters, ParseException parseException) { argument
76 super(name, body, raw);
211 public Field parse(final String name, final String body, final String raw) { argument
216 ContentTypeParser parser = new ContentTypeParser(new StringReader(body));
222 log.debug("Parsing value '" + body + "': "+ e.getMessage());
228 log.debug("Parsing value '" + body + "': "+ e.getMessage());
256 return new ContentTypeField(name, body, raw, mimeType, parameters, parseException);
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
H A DDecoderUtil.java102 * RFC 2047) found in a header field body.
118 * RFC 2047) found in a header field body.
153 * @param body the string to decode.
156 public static String decodeEncodedWords(String body) { argument
160 if (body.indexOf("=?") == -1) {
161 return body;
170 int begin = body.indexOf("=?", previousEnd);
177 int qm1 = body.indexOf('?', endScan + 2);
178 int qm2 = body.indexOf('?', qm1 + 1);
184 int end = begin == -1 ? -1 : body
213 decodeEncodedWord(String body, int begin, int end) argument
[all...]
/packages/apps/Email/src/org/apache/james/mime4j/message/
H A DEntity.java30 * MIME entity. An entity has a header and a body (see RFC 2045).
37 private Body body = null; field in class:Entity
79 * Gets the body of this entity.
81 * @return the body,
84 return body;
88 * Sets the body of this entity.
90 * @param body the body.
92 public void setBody(Body body) { argument
93 this.body
[all...]
H A DMessage.java89 Body body = getBody();
90 if (body instanceof Multipart) {
91 Multipart mp = (Multipart) body;
94 body.writeTo(out);
173 * @see org.apache.james.mime4j.ContentHandler#body(org.apache.james.mime4j.BodyDescriptor, java.io.InputStream)
175 public void body(BodyDescriptor bd, InputStream is) throws IOException { method in class:Message.MessageBuilder
185 Body body = null;
187 body = new MemoryTextBody(is, bd.getCharset());
189 body = new MemoryBinaryBody(is);
192 ((Entity) stack.peek()).setBody(body);
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
H A DMimeBodyPart.java48 public MimeBodyPart(Body body) throws MessagingException { argument
49 this(body, null);
52 public MimeBodyPart(Body body, String mimeType) throws MessagingException { argument
56 setBody(body);
83 public void setBody(Body body) throws MessagingException { argument
84 this.mBody = body;
85 if (body instanceof com.android.emailcommon.mail.Multipart) {
87 ((com.android.emailcommon.mail.Multipart)body);
91 else if (body instanceof TextBody) {
H A DTextBody.java33 public TextBody(String body) { argument
34 this.mBody = body;
43 * Get the text of the body in it's unencoded format.
51 * Returns an InputStream that reads this body's text in UTF-8 format.
H A DRfc822Output.java66 /** A less-than-perfect pattern to pull out <body> content */
68 "(?:<\\s*body[^>]*>)(.*)(?:<\\s*/\\s*body\\s*>)",
70 /** Match group in {@code BODDY_PATTERN} for the body HTML */
77 /** Index of the plain text version of the message body */
79 /** Index of the HTML version of the message body */
85 * Returns just the content between the <body></body> tags. This is not perfect and breaks
87 * the <body> tag (e.g. a '>' in a java script block).
92 return match.group(BODY_PATTERN_GROUP); // Found body; retur
101 getHtmlAlternate(Body body, boolean useSmartReply) argument
124 buildBodyText(Body body, int flags, boolean useSmartReply) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/alerts/
H A DQuickResponseActivity.java86 String body = null;
88 body = mResponses[position];
92 new QueryThread(mEventId, body).start();
99 QueryThread(long eventId, String body) { argument
101 mBody = body;
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DConversionUtilities.java31 * Values for HEADER_ANDROID_BODY_QUOTED_PART to tag body parts
58 * Copy body text (plain and/or HTML) from MimeMessage to provider Message
60 public static boolean updateBodyFields(EmailContent.Body body, argument
64 body.mMessageKey = localMessage.mId;
106 // Most of the time, just process regular body parts
114 // write the combined data to the body part
117 body.mTextContent = text;
122 body.mHtmlContent = text;
128 body.mHtmlReply = sbHtmlReply.toString();
131 body
[all...]
/packages/apps/Email/src/org/apache/james/mime4j/
H A DAbstractContentHandler.java49 * @see org.apache.james.mime4j.ContentHandler#body(org.apache.james.mime4j.BodyDescriptor, java.io.InputStream)
51 public void body(BodyDescriptor bd, InputStream is) throws IOException { method in class:AbstractContentHandler
H A DContentHandler.java32 * basic message-related events like the start and end of the body of a
53 * body()
61 * body()
68 * body containing two body parts.
92 * Called when a new body part starts inside a
98 * Called when a body part ends.
103 * Called when a header (of a message or body part) is about to be parsed.
117 * Called when there are no more header fields in a message or body part.
122 * Called for the preamble (whatever comes before the first body par
166 void body(BodyDescriptor bd, InputStream is) throws IOException; method in interface:ContentHandler
[all...]
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
H A DRfc822OutputTests.java55 private static final String REPLY_TEXT_BODY = "This is the body. This is also the body.";
56 /** HTML reply body */
58 "<a href=\"m.google.com\">This</a> is the body.<br>This is also the body.";
59 /** Text-only version of the HTML reply body */
61 ">This is the body.\n>This is also the body.";
66 + "<body bgcolor=\"#ffffff\" text=\"#000000\">"
67 + "<a href=\"google.com\">test1</a></body></htm
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/
H A DPart.java49 public void setBody(Body body) throws MessagingException; argument
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastListItem.java78 String body = message.getMessageBody();
80 SpannableStringBuilder buf = new SpannableStringBuilder(body);
92 // Speak the date first, then channel name, then message body
/packages/apps/Mms/src/com/android/mms/transaction/
H A DHttpUtils.java209 byte[] body = null;
213 body = new byte[(int) entity.getContentLength()];
216 dis.readFully(body);
251 body = new byte[offset];
252 System.arraycopy(tempBody, 0, body, 0, offset);
272 return body;
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
H A DMessageTestUtils.java38 * .text("<body>").cidImg("contetid@domain").text("</body>").build("</html");
40 * .text("<body>").uriImg(contentUri).text("</body>").build("</html");
72 * @param mimeType MIME type of body part
74 * @return MimeBodyPart object which body is null.
89 * @param text body text string
90 * @return MimeBodyPart object whose body is TextBody
157 * @return BodyPart whose body is intended Multipart.
185 * @param body Bod
188 setBody(final Body body) argument
[all...]

Completed in 303 milliseconds

123