public class AnnotationIterator extends AbstractIterator<Annotation> implements java.io.Closeable
| Constructor and Description |
|---|
AnnotationIterator(java.lang.String filename) |
AnnotationIterator(java.lang.String filename,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getDocCnt() |
boolean |
hasNext() |
Annotation |
next() |
Annotation |
readJsonDocument(java.lang.String str) |
Annotation |
readNextDocument() |
removepublic AnnotationIterator(java.lang.String filename)
throws java.io.IOException
java.io.IOExceptionpublic AnnotationIterator(java.lang.String filename,
int limit)
throws java.io.IOException
java.io.IOExceptionpublic boolean hasNext()
AbstractIteratorhasNext in interface java.util.Iterator<Annotation>hasNext in class AbstractIterator<Annotation>public Annotation next()
AbstractIteratornext in interface java.util.Iterator<Annotation>next in class AbstractIterator<Annotation>public Annotation readJsonDocument(java.lang.String str)
public Annotation readNextDocument()
public int getDocCnt()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable