uk.ac.man.documentparser.input
Class MedlinePMCIndex

java.lang.Object
  extended by 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


Field Summary
private  java.lang.String currentFile
           
private  int currentFilePassed
           
private  java.io.BufferedReader currentFileStream
           
private  java.lang.String currentLine
           
private  java.lang.String[] dtds
           
private  java.lang.String endXML
           
private  java.io.BufferedReader indexStream
           
private  java.io.File medlineBaseDir
           
private  int minYearFilter
           
private  java.lang.String nextEntry
           
private  java.io.File pmcBaseDir
           
private  java.lang.String startXML
           
private  java.util.Set<java.lang.String> validIDs
           
 
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)
           
 
Method Summary
private  void fetchNextLine()
           
 boolean hasNext()
           
 java.util.Iterator<Document> iterator()
           
 Document next()
           
 void remove()
           
 void skip()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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