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() |
remove
public AnnotationIterator(java.lang.String filename) throws java.io.IOException
java.io.IOException
public AnnotationIterator(java.lang.String filename, int limit) throws java.io.IOException
java.io.IOException
public boolean hasNext()
AbstractIterator
hasNext
in interface java.util.Iterator<Annotation>
hasNext
in class AbstractIterator<Annotation>
public Annotation next()
AbstractIterator
next
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.Closeable
close
in interface java.lang.AutoCloseable