uk.ac.gla.dcs.renaissance.ir.collections
Class XMLFileIterator
java.lang.Object
uk.ac.gla.dcs.renaissance.ir.collections.XMLFileIterator
- All Implemented Interfaces:
- bpiwowar.pipe.Processor<File,Document>
public class XMLFileIterator
- extends Object
- implements bpiwowar.pipe.Processor<File,Document>
Takes files in input, and outputs XML document (DOM representation)
- Author:
- Benjamin Piwowarski
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLFileIterator
public XMLFileIterator()
setDTD
public void setDTD(String dtdfilename)
throws ParserConfigurationException
- Force validation with a predefined DTD
- Parameters:
dtdfilename
- The path to the DTD
- Throws:
ParserConfigurationException
- If the XML parser is not compatible with this option
process
public Document process(File file)
- Specified by:
process
in interface bpiwowar.pipe.Processor<File,Document>
Copyright © 2011. All Rights Reserved.