/packages/apps/UnifiedEmail/src/com/android/mail/lib/html/parser/ |
H A D | HtmlWhitelist.java | 16 package com.android.mail.lib.html.parser;
|
H A D | HTML.java | 16 package com.android.mail.lib.html.parser;
|
H A D | HtmlParser.java | 16 package com.android.mail.lib.html.parser; 37 * HtmlParser is a simple but efficient html parser. 39 * parser. It assumes that the entire html text is available. 57 // The html text 58 private String html; field in class:HtmlParser 184 * @param html String to parse 187 public HtmlDocument parse(String html) { argument 188 this.html = html; 195 int end = html 387 private final String html; field in class:HtmlParser.TagNameScanner 392 TagNameScanner(String html) argument 434 private final String html; field in class:HtmlParser.AttributeScanner 447 AttributeScanner(String html) argument [all...] |
H A D | HtmlTree.java | 16 package com.android.mail.lib.html.parser; 32 * HtmlTree represents a parsed and well-formed html text, it provides 36 * We don't really build a html tree data structure. Instead, for 96 /** Contains html nodes */ 106 /** The html string (lazy creation) */ 107 private String html; field in class:HtmlTree 153 * Gets the entire html. 160 * Gets the entire html, if wrapSize is > 0, it tries to do wrapping at the 164 if (html == null) { 165 html [all...] |
H A D | HtmlTreeBuilder.java | 16 package com.android.mail.lib.html.parser; 19 import com.android.mail.lib.html.parser.HtmlDocument.EndTag; 44 /** Gets the built html tree */ 298 String html = new String(ByteStreams.toByteArray(System.in)); 300 HtmlDocument doc = parser.parse(html);
|
H A D | HtmlDocument.java | 16 package com.android.mail.lib.html.parser; 32 * HtmlDocument is a container for a list of html nodes, and represents the 33 * entire html document. It contains toHTML() method which prints out the html 45 * @param nodes list of html nodes 338 private String html; field in class:HtmlDocument.Text 400 if (html == null) { 401 html = CharEscapers.asciiHtmlEscaper().escape(getText()); 403 sb.append(html); 796 * This value must be in plain-text, not html [all...] |
H A D | HTML4.java | 16 package com.android.mail.lib.html.parser; 29 * See http://www.w3.org/TR/html401/index/elements.html 30 * See http://www.w3.org/TR/html401/index/attributes.html 45 * @see com.google.common.html.parser.HtmlWhitelist#lookupElement(String) 52 * @see com.google.common.html.parser.HtmlWhitelist#lookupAttribute(String) 156 * http://www.w3.org/TR/REC-html40/sgml/dtd.html#block 157 * http://www.w3.org/TR/REC-html40/sgml/dtd.html#inline 164 * http://www.w3.org/TR/REC-html40/index/elements.html
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
H A D | HtmlWhitelist.java | 17 package com.google.android.mail.common.html.parser;
|
H A D | HTML.java | 17 package com.google.android.mail.common.html.parser;
|
H A D | HtmlParser.java | 16 package com.google.android.mail.common.html.parser; 37 * HtmlParser is a simple but efficient html parser. 39 * parser. It assumes that the entire html text is available. 57 // The html text 58 private String html; field in class:HtmlParser 184 * @param html String to parse 187 public HtmlDocument parse(String html) { argument 188 this.html = html; 195 int end = html 387 private final String html; field in class:HtmlParser.TagNameScanner 392 TagNameScanner(String html) argument 434 private final String html; field in class:HtmlParser.AttributeScanner 447 AttributeScanner(String html) argument [all...] |
H A D | HtmlTree.java | 16 package com.google.android.mail.common.html.parser; 33 * HtmlTree represents a parsed and well-formed html text, it provides 37 * We don't really build a html tree data structure. Instead, for 50 // http://www.w3.org/TR/html4/struct/text.html#h-9.1 100 /** Contains html nodes */ 110 /** The html string (lazy creation) */ 111 private String html; field in class:HtmlTree 186 * Gets the entire html. 193 * Gets the entire html, if wrapSize is > 0, it tries to do wrapping at the 197 if (html [all...] |
H A D | HtmlTreeBuilder.java | 16 package com.google.android.mail.common.html.parser; 19 import com.google.android.mail.common.html.parser.HtmlDocument.EndTag; 44 /** Gets the built html tree */ 298 String html = new String(ByteStreams.toByteArray(System.in)); 300 HtmlDocument doc = parser.parse(html);
|
H A D | HtmlDocument.java | 17 package com.google.android.mail.common.html.parser; 33 * HtmlDocument is a container for a list of html nodes, and represents the 34 * entire html document. It contains toHTML() method which prints out the html 46 * @param nodes list of html nodes 339 private String html; field in class:HtmlDocument.Text 401 if (html == null) { 402 html = CharEscapers.asciiHtmlEscaper().escape(getText()); 404 sb.append(html); 797 * This value must be in plain-text, not html [all...] |
H A D | HTML4.java | 17 package com.google.android.mail.common.html.parser; 30 * See http://www.w3.org/TR/html401/index/elements.html 31 * See http://www.w3.org/TR/html401/index/attributes.html 46 * @see com.google.common.html.parser.HtmlWhitelist#lookupElement(String) 53 * @see com.google.common.html.parser.HtmlWhitelist#lookupAttribute(String) 157 * http://www.w3.org/TR/REC-html40/sgml/dtd.html#block 158 * http://www.w3.org/TR/REC-html40/sgml/dtd.html#inline 165 * http://www.w3.org/TR/REC-html40/index/elements.html
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
H A D | Rfc822Output.java | 80 /*package*/ static String getHtmlBody(String html) { argument 81 Matcher match = BODY_PATTERN.matcher(html); 85 return html; // Body not found; return the full HTML and hope for the best 368 boolean html = false; 372 html = true; 378 String mimeType = "text/" + (html ? "html" : "plain");
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/ |
H A D | TextUtilities.java | 57 // see http://www.w3.org/TR/REC-html40/sgml/entities.html 315 * Code to generate a short 'snippet' from either plain text or html text 562 * @param html whether or not the text to be processed is HTML 567 public static CharSequence highlightTerms(String text, String query, boolean html) argument 584 final Appendable sb = html ? new StringBuilder() : new SpannableStringBuilder(); 594 if (html) { 658 if (html) {
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | HtmlConversationTemplates.java | 132 static String replaceAbsoluteImgUrls(final String html) { argument 133 return sAbsoluteImgUrlPattern.matcher(html).replaceAll(IMG_URL_REPLACEMENT);
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | NotificationUtils.java | 63 import com.google.android.mail.common.html.parser.HTML; 64 import com.google.android.mail.common.html.parser.HTML4; 65 import com.google.android.mail.common.html.parser.HtmlDocument; 66 import com.google.android.mail.common.html.parser.HtmlTree; 1399 public static String getMessageBodyWithoutElidedText(String html) { argument 1400 if (TextUtils.isEmpty(html)) { 1403 // Get the html "tree" for this message body 1404 final HtmlTree htmlTree = com.android.mail.utils.Utils.getHtmlTree(html); 1502 // Strings for parsing html message bodies
|