|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.de.HtmlAddrCount
Internal word counter for DeHtml.
DeHtml
Field Summary | |
(package private) int |
paragraphCount
Number of the current paragraph, starting at 1. |
(package private) int |
wordCount
Number of the current word in the current paragraph, starting at 0 but usually newWord() is called before the word number is used, so that the actual start can be considered 1. |
Constructor Summary | |
HtmlAddrCount()
Initializes counters with new HtmlAddrCount Object. |
Method Summary | |
int |
getParagraphCount()
Returns the number of the current paragraph |
int |
getWordCount()
Returns the number of the current word within the current paragraph |
void |
newTag(java.lang.String sgmltag)
Increments paragraph counter and reset word counter if paragraph tag is supplied. |
void |
newWord()
Increments word counter. |
void |
present()
Writes the current word and paragraph counters' values to standard out |
Methods inherited from class java.lang.Object |
|
Field Detail |
int wordCount
int paragraphCount
Constructor Detail |
public HtmlAddrCount()
Method Detail |
public final void newTag(java.lang.String sgmltag)
sgmltag
- a sgml tag.public final void newWord()
public final int getWordCount()
public final int getParagraphCount()
public void present()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |