uk.ac.man.documentparser.input
Class PMCIndex

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


Field Summary
private  java.lang.String[] dtds
           
private  java.io.BufferedReader indexStream
           
private  java.lang.String nextEntry
           
private  java.io.File pmcBaseDir
           
 
Constructor Summary
PMCIndex(java.io.File pmcBaseDir, java.io.File indexFile, java.lang.String[] dtds)
           
 
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

pmcBaseDir

private java.io.File pmcBaseDir

indexStream

private java.io.BufferedReader indexStream

nextEntry

private java.lang.String nextEntry

dtds

private java.lang.String[] dtds
Constructor Detail

PMCIndex

public PMCIndex(java.io.File pmcBaseDir,
                java.io.File indexFile,
                java.lang.String[] dtds)
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