uk.ac.man.documentparser.input
Class PMCIndex
java.lang.Object
uk.ac.man.documentparser.input.PMCIndex
- All Implemented Interfaces:
- java.lang.Iterable<Document>, java.util.Iterator<Document>, DocumentIterator
public class PMCIndex
- extends java.lang.Object
- implements DocumentIterator
Constructor Summary |
PMCIndex(java.io.File pmcBaseDir,
java.io.File indexFile,
java.lang.String[] dtds)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pmcBaseDir
private java.io.File pmcBaseDir
indexStream
private java.io.BufferedReader indexStream
nextEntry
private java.lang.String nextEntry
dtds
private java.lang.String[] dtds
PMCIndex
public PMCIndex(java.io.File pmcBaseDir,
java.io.File indexFile,
java.lang.String[] dtds)
iterator
public java.util.Iterator<Document> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<Document>
fetchNextLine
private void fetchNextLine()
next
public Document next()
- Specified by:
next
in interface java.util.Iterator<Document>
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<Document>
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<Document>
skip
public void skip()
- Specified by:
skip
in interface DocumentIterator