Package net.sf.okapi.lib.terminology
Interface IGlossaryReader
-
- All Superinterfaces:
Iterator<ConceptEntry>
public interface IGlossaryReader extends Iterator<ConceptEntry>
Provides read access to various glossary formats using a common set of methods.
-
-
Method Summary
All Methods Instance Methods Abstract 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 interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
open
void open(File file)
Opens a glossary from a File.- Parameters:
file- the glossary file.
-
open
void open(InputStream input)
Opens a glossary from an input stream.- Parameters:
input- the input to read.
-
close
void close()
Close the glossary reader.
-
hasNext
boolean hasNext()
Indicates if there is another entry.- Specified by:
hasNextin interfaceIterator<ConceptEntry>- Returns:
- true if there is another entry, false otherwise.
-
next
ConceptEntry next()
Gets the next entry in this glossary.- Specified by:
nextin interfaceIterator<ConceptEntry>- Returns:
- the next entry in this glossary.
-
-