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