1 19 20 33 package org.htmlparser.scanners; 34 35 import org.htmlparser.tags.BodyTag; 36 import org.htmlparser.tags.Tag; 37 import org.htmlparser.tags.data.CompositeTagData; 38 import org.htmlparser.tags.data.TagData; 39 40 43 public class BodyScanner extends CompositeTagScanner 44 { 45 private static final String MATCH_NAME[] = { "BODY" }; 46 private static final String ENDERS[] = { 47 }; 48 private static final String END_TAG_ENDERS[] = { "HTML" }; 49 50 public BodyScanner() 51 { 52 this(""); 53 } 54 55 public BodyScanner(String filter) 56 { 57 super(filter, MATCH_NAME, ENDERS, END_TAG_ENDERS, false); 58 } 59 60 public String [] getID() 61 { 62 return MATCH_NAME; 63 } 64 65 public Tag createTag(TagData tagData, CompositeTagData compositeTagData) 66 { 67 return new BodyTag(tagData, compositeTagData); 68 } 69 70 } 71 | Popular Tags |