textmaven.application.analyzer
Interface ITextHandler

All Known Implementing Classes:
Annotator, WordExtractor

public interface ITextHandler

ITextHandler instances handle text events produced by ITextReader instances. Specific ITextReader instances might not support all events.

Author:
krebtho

Method Summary
 void endParagraph()
          Called when a paragraph ends
 void endSentence(java.lang.String sentence, char punctuation)
          Called when the sentence ended.
 void endText()
          Called when text reading finished.
 void heading(int depth, java.lang.String title)
          Called when a heading was read.
 void startParagraph()
          Called when a new paragraph starts
 void startSentence()
          Called when a new sentence starts.
 void startText()
          Called when text reading starts.
 void word(java.lang.String word)
          Called when a word was read
 

Method Detail

startText

public void startText()
Called when text reading starts.


endText

public void endText()
Called when text reading finished.


startParagraph

public void startParagraph()
Called when a new paragraph starts


endParagraph

public void endParagraph()
Called when a paragraph ends


startSentence

public void startSentence()
Called when a new sentence starts.


endSentence

public void endSentence(java.lang.String sentence,
                        char punctuation)
Called when the sentence ended.

Parameters:
sentence - Sentence read, incl. punctuation char.
punctuation - Punctuation character terminating the sentence

word

public void word(java.lang.String word)
Called when a word was read

Parameters:
word - word read

heading

public void heading(int depth,
                    java.lang.String title)
Called when a heading was read.

Parameters:
depth - heading depth
title - heading title


Copyright © 2002-2005 Sourceforge. All Rights Reserved.