public abstract class DataSourceDictionary.FileIterator<T,N> extends Object implements Iterator<N>, IHasPOS
| Modifier and Type | Field and Description |
|---|---|
protected String |
currentLine |
protected IDataSource<T> |
fFile |
protected ILineParser<T> |
fParser |
protected Iterator<String> |
iterator |
| Constructor and Description |
|---|
FileIterator(IContentType<T> content) |
FileIterator(IContentType<T> content,
String startKey) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentLine()
Returns the current line.
|
POS |
getPOS()
Returns the associated part of speech for this object.
|
boolean |
hasNext() |
N |
next() |
abstract N |
parseLine(String line)
Parses the line using a parser provided at construction time
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected final IDataSource<T> fFile
protected final ILineParser<T> fParser
protected String currentLine
public FileIterator(IContentType<T> content)
public FileIterator(IContentType<T> content, String startKey)
public String getCurrentLine()
public POS getPOS()
IHasPOSnull.Copyright © 2018. All rights reserved.