uk.ac.man.documentparser.input
Class BMC
java.lang.Object
uk.ac.man.documentparser.input.BMC
- All Implemented Interfaces:
- java.lang.Iterable<Document>, java.util.Iterator<Document>, DocumentIterator
public class BMC
- extends java.lang.Object
- implements DocumentIterator
Constructor Summary |
BMC(java.io.File file,
java.lang.String[] dtdLocation)
|
BMC(java.lang.StringBuffer data,
java.lang.String[] dtdLocation)
|
BMC(java.lang.String filename,
java.lang.String[] dtdLocation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
doc
private org.w3c.dom.Document doc
numArticles
private int numArticles
nextArticle
private int nextArticle
BMC
public BMC(java.lang.StringBuffer data,
java.lang.String[] dtdLocation)
BMC
public BMC(java.io.File file,
java.lang.String[] dtdLocation)
BMC
public BMC(java.lang.String filename,
java.lang.String[] dtdLocation)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<Document>
getSection
private Section[] getSection(org.w3c.dom.NodeList mainElement)
next
public Document next()
- Specified by:
next
in interface java.util.Iterator<Document>
getAuthors
private Author[] getAuthors(org.w3c.dom.Element root)
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<Document>
skip
public void skip()
- Specified by:
skip
in interface DocumentIterator
iterator
public java.util.Iterator<Document> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<Document>