uk.ac.man.documentparser.input
Class MedlinePMCIndex
java.lang.Object
uk.ac.man.documentparser.input.MedlinePMCIndex
- All Implemented Interfaces:
- java.lang.Iterable<Document>, java.util.Iterator<Document>, DocumentIterator
public class MedlinePMCIndex
- extends java.lang.Object
- implements DocumentIterator
Constructor Summary |
MedlinePMCIndex(java.io.File medlineBaseDir,
java.io.File pmcBaseDir,
java.io.File indexFile,
java.lang.String[] dtds,
int minYearFilter,
java.util.Set<java.lang.String> validIDs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
medlineBaseDir
private java.io.File medlineBaseDir
indexStream
private java.io.BufferedReader indexStream
currentFile
private java.lang.String currentFile
currentFileStream
private java.io.BufferedReader currentFileStream
currentFilePassed
private int currentFilePassed
currentLine
private java.lang.String currentLine
startXML
private final java.lang.String startXML
- See Also:
- Constant Field Values
endXML
private final java.lang.String endXML
- See Also:
- Constant Field Values
nextEntry
private java.lang.String nextEntry
minYearFilter
private int minYearFilter
validIDs
private java.util.Set<java.lang.String> validIDs
pmcBaseDir
private java.io.File pmcBaseDir
dtds
private java.lang.String[] dtds
MedlinePMCIndex
public MedlinePMCIndex(java.io.File medlineBaseDir,
java.io.File pmcBaseDir,
java.io.File indexFile,
java.lang.String[] dtds,
int minYearFilter,
java.util.Set<java.lang.String> validIDs)
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