|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.wordnet.reader.WordNetReader.ArchiveMaker
private static class WordNetReader.ArchiveMaker
Class to read from the WordNet site.
Field Summary | |
---|---|
java.util.List<java.lang.String> |
similarWords
List of words that are similar to the keyterm that are stored in the class |
private java.lang.String |
word
|
Constructor Summary | |
---|---|
WordNetReader.ArchiveMaker(java.lang.String word)
Archive maker constructor. |
Method Summary | |
---|---|
void |
close()
|
boolean |
done()
If this returns true, the code that is feeding lines to this processor can then stop. |
static java.lang.String |
ltrim(java.lang.String source)
Method to remov leading whitespace. |
void |
processLine(java.lang.String line)
Process the line. |
void |
reset()
Resets the processor so it may be used with another document. |
static java.lang.String |
rtrim(java.lang.String source)
Method to remove trailing whitespace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String word
public java.util.List<java.lang.String> similarWords
Constructor Detail |
---|
public WordNetReader.ArchiveMaker(java.lang.String word) throws java.io.IOException
file
- a file to read fromword
- the keytearm searched
java.io.IOException
Method Detail |
---|
public void processLine(java.lang.String line)
DocumentProcessor
processLine
in interface DocumentProcessor
line
- the line to processpublic static java.lang.String ltrim(java.lang.String source)
source
-
public static java.lang.String rtrim(java.lang.String source)
source
-
public boolean done()
DocumentProcessor
done
in interface DocumentProcessor
public void close()
public void reset()
DocumentProcessor
reset
in interface DocumentProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |