1 19 20 33 package org.htmlparser.scanners; 34 35 import org.htmlparser.tags.TableColumn; 36 import org.htmlparser.tags.Tag; 37 import org.htmlparser.tags.data.CompositeTagData; 38 import org.htmlparser.tags.data.TagData; 39 40 public class TableColumnScanner extends CompositeTagScanner 41 { 42 private final static String MATCH_STRING[] = { "TD" }; 43 44 public TableColumnScanner() 45 { 46 this(""); 47 } 48 49 public TableColumnScanner(String filter) 50 { 51 this(filter, MATCH_STRING, new String [] { 52 }, new String [] { 53 }, false); 54 } 55 56 public TableColumnScanner( 57 String filter, 58 String [] nameOfTagToMatch, 59 String [] tagEnders, 60 String [] endTagEnders, 61 boolean allowSelfChildren) 62 { 63 super( 64 filter, 65 nameOfTagToMatch, 66 tagEnders, 67 endTagEnders, 68 allowSelfChildren); 69 } 70 71 public Tag createTag(TagData tagData, CompositeTagData compositeTagData) 72 { 73 return new TableColumn(tagData, compositeTagData); 74 } 75 76 public String [] getID() 77 { 78 return MATCH_STRING; 79 } 80 81 } 82 | Popular Tags |