Package rabbit.html

Examples of rabbit.html.TagType


    /** Remove background images from the given block.
     * @param tag the current Tag
     */
    public void handleTag (Tag tag, HtmlBlock block, int tokenIndex) {
  TagType type = tag.getTagType ();
  if (type == TagType.BODY ||
      type == TagType.TABLE ||
      type == TagType.TR ||
      type == TagType.TD) {
      tag.removeAttribute ("background");
View Full Code Here


  int tsize = tokens.size ();
  for (int i = 0; i < tsize; i++) {
      Token t = tokens.get (i);
      if (t.getType () == TokenType.TAG) {
    Tag tag = t.getTag ();
    TagType tagtype = tag.getTagType ();
    if (tagtype == TagType.A) {
        astart = i;
        Tag atag = tag;
        int ttsize = tokens.size ();
        for (; i < ttsize; i++) {
      Token tk2 = tokens.get (i);
      if (tk2.getType () == TokenType.TAG) {
          Tag tag2 = tk2.getTag ();
          TagType t2tt = tag2.getTagType ();
          if (t2tt != null &&
        t2tt == TagType.SA)
        break;
          else if (t2tt != null &&
             t2tt == TagType.IMG) {
View Full Code Here

    /** Remove blink tags.
     * @param block the part of the html page we are filtering.
     */
    public void handleTag (Tag tag, HtmlBlock block, int tokenIndex) {
  TagType tt = tag.getTagType ();
  if (tt == TagType.BLINK || tt == TagType.SBLINK)
      block.removeToken (tokenIndex);
    }
View Full Code Here

TOP

Related Classes of rabbit.html.TagType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.