org.htmlparser.tags

Class BodyTag

public class BodyTag extends CompositeTag

A Body Tag. Primarily a container for child tags.
Constructor Summary
BodyTag()
Create a new body tag.
Method Summary
StringgetBody()
Returns the textual contents of this BODY tag.
String[]getEnders()
Return the set of tag names that cause this tag to finish.
String[]getEndTagEnders()
Return the set of end tag names that cause this tag to finish.
String[]getIds()
Return the set of names handled by this tag.

Constructor Detail

BodyTag

public BodyTag()
Create a new body tag.

Method Detail

getBody

public String getBody()
Returns the textual contents of this BODY tag. Equivalent to toPlainTextString().

Returns: The 'browser' text in this tag.

getEnders

public String[] getEnders()
Return the set of tag names that cause this tag to finish.

Returns: The names of following tags that stop further scanning.

getEndTagEnders

public String[] getEndTagEnders()
Return the set of end tag names that cause this tag to finish.

Returns: The names of following end tags that stop further scanning.

getIds

public String[] getIds()
Return the set of names handled by this tag.

Returns: The names to be matched that create tags of this type.

HTML Parser is an open source library released under LGPL. SourceForge.net