net.sf.doolin.oxml.source
Class FileOXMLSource

java.lang.Object
  extended by net.sf.doolin.oxml.source.AbstractOXMLSource
      extended by net.sf.doolin.oxml.source.StreamOXMLSource
          extended by net.sf.doolin.oxml.source.FileOXMLSource
All Implemented Interfaces:
OXMLSource

public class FileOXMLSource
extends StreamOXMLSource

DOM source from a file

Author:
Damien Coraboeuf

Constructor Summary
FileOXMLSource(File f)
          Constructs a source from an XML file.
 
Method Summary
 void close()
          Closes the opened stream.
 
Methods inherited from class net.sf.doolin.oxml.source.StreamOXMLSource
closeStream, getSource
 
Methods inherited from class net.sf.doolin.oxml.source.AbstractOXMLSource
getBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileOXMLSource

public FileOXMLSource(File f)
               throws IOException
Constructs a source from an XML file.

Parameters:
f - XML file
Throws:
IOException - If the file cannot be read
Method Detail

close

public void close()
           throws IOException
Closes the opened stream.

Specified by:
close in interface OXMLSource
Overrides:
close in class StreamOXMLSource
Throws:
IOException - If the source cannot be closed
See Also:
StreamOXMLSource.closeStream(), StreamOXMLSource.close()


Copyright © 2011. All Rights Reserved.