/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/ |
H A D | FieldParser.java | 20 Field parse(final String name, final String body, final String raw);
argument
|
H A D | AddressListField.java | 33 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 D | DateTimeField.java | 38 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 D | DelegatingFieldParser.java | 43 public Field parse(final String name, final String body, final String raw) {
argument 45 return parser.parse(name, body, raw);
|
H A D | MailboxField.java | 35 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 D | MailboxListField.java | 35 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 D | UnstructuredField.java | 34 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 D | ContentTransferEncodingField.java | 54 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 D | ContentTypeField.java | 75 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);
|
H A D | Field.java | 60 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...] |
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
H A D | TextBody.java | 33 public TextBody(String body) { argument 34 this.mBody = body; 44 * Get the text of the body in it's unencoded format. 52 * Returns an InputStream that reads this body's text in UTF-8 format.
|
H A D | MimeBodyPart.java | 48 public MimeBodyPart(Body body) throws MessagingException { argument 49 this(body, null); 52 public MimeBodyPart(Body body, String mimeType) throws MessagingException { argument 56 setBody(body); 89 public void setBody(Body body) throws MessagingException { argument 90 this.mBody = body; 91 if (body instanceof com.android.emailcommon.mail.Multipart) { 93 ((com.android.emailcommon.mail.Multipart)body); 97 else if (body instanceof TextBody) {
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/ |
H A D | SimpleContentHandler.java | 33 * decoding to body parts.
45 * Called when the body of a discrete (non-multipart) entity is encountered.
52 * @param is the contents of the body. Base64 or quoted-printable
87 * @see org.apache.james.mime4j.AbstractContentHandler#body(org.apache.james.mime4j.BodyDescriptor, java.io.InputStream)
89 public final void body(BodyDescriptor bd, InputStream is) throws IOException {
method in class:SimpleContentHandler
|
H A D | AbstractContentHandler.java | 49 * @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 D | ContentHandler.java | 32 * 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/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
H A D | DecoderUtil.java | 102 * 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/Calendar/src/com/android/calendar/alerts/ |
H A D | QuickResponseActivity.java | 86 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/UnifiedEmail/src/com/android/emailcommon/mail/ |
H A D | Part.java | 49 public void setBody(Body body) throws MessagingException; argument
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/ |
H A D | Entity.java | 30 * 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 D | Message.java | 89 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/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/ |
H A D | SendCdmaCmasMessages.java | 129 * @param body message body 138 String language, String body, int cmasCategory, int responseType, int severity, 145 serviceCategory, language, body, SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, null, 137 createCmasSmsMessage(int serviceCategory, int messageId, String language, String body, int cmasCategory, int responseType, int severity, int urgency, int certainty) argument
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
H A D | Rfc822Output.java | 62 /** A less-than-perfect pattern to pull out <body> content */ 64 "(?:<\\s*body[^>]*>)(.*)(?:<\\s*/\\s*body\\s*>)", 66 /** Match group in {@code BODY_PATTERN} for the body HTML */ 68 /** Index of the plain text version of the message body */ 70 /** Index of the HTML version of the message body */ 76 * Returns just the content between the <body></body> tags. This is not perfect and breaks 78 * the <body> tag (e.g. a '>' in a java script block). 83 return match.group(BODY_PATTERN_GROUP); // Found body; retur 92 buildBodyText(Body body, boolean useSmartReply) argument [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/mail/ |
H A D | MessageTestUtils.java | 38 * .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...] |
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
H A D | MessageModification.java | 108 * Saves a new body for the message. Only valid for drafts. 111 * @param body the new body of the message 113 public static void putBody(ContentValues values, String body) { argument 114 values.put(MessageColumns.BODY_TEXT, body); 118 * Saves a new body for the message. Only valid for drafts. 121 * @param body the new body of the message 123 public static void putBodyHtml(ContentValues values, String body) { argument 124 values.put(MessageColumns.BODY_HTML, body); [all...] |
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
H A D | Pop3StoreUnitTests.java | 902 private void checkFetchedMessage(Message message, int msgNum, boolean body) argument 934 // TODO check body (if applicable) 1019 * @param body if true, a non-empty body will be added 1021 private static void setupSingleMessage(MockTransport transport, int msgNum, boolean body) { argument
|