uk.ac.gla.dcs.renaissance.ir.collections
Class XMLFileIterator

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

Constructor Summary
XMLFileIterator()
           
 
Method Summary
 Document process(File file)
           
 void setDTD(String dtdfilename)
          Force validation with a predefined DTD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFileIterator

public XMLFileIterator()
Method Detail

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.