Package net.sf.okapi.lib.terminology.tsv
Class TSVReader
- java.lang.Object
-
- net.sf.okapi.lib.terminology.tsv.TSVReader
-
- All Implemented Interfaces:
Iterator<ConceptEntry>,IGlossaryReader
public class TSVReader extends Object implements IGlossaryReader
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the glossary reader.booleanhasNext()Indicates if there is another entry.ConceptEntrynext()Gets the next entry in this glossary.voidopen(File file)Opens a glossary from a File.voidopen(InputStream input)Opens a glossary from an input stream.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
open
public void open(File file)
Description copied from interface:IGlossaryReaderOpens a glossary from a File.- Specified by:
openin interfaceIGlossaryReader- Parameters:
file- the glossary file.
-
open
public void open(InputStream input)
Description copied from interface:IGlossaryReaderOpens a glossary from an input stream.- Specified by:
openin interfaceIGlossaryReader- Parameters:
input- the input to read.
-
close
public void close()
Description copied from interface:IGlossaryReaderClose the glossary reader.- Specified by:
closein interfaceIGlossaryReader
-
hasNext
public boolean hasNext()
Description copied from interface:IGlossaryReaderIndicates if there is another entry.- Specified by:
hasNextin interfaceIGlossaryReader- Specified by:
hasNextin interfaceIterator<ConceptEntry>- Returns:
- true if there is another entry, false otherwise.
-
next
public ConceptEntry next()
Description copied from interface:IGlossaryReaderGets the next entry in this glossary.- Specified by:
nextin interfaceIGlossaryReader- Specified by:
nextin interfaceIterator<ConceptEntry>- Returns:
- the next entry in this glossary.
-
-