net.sf.doolin.oxml.source
Class URLOXMLSource

java.lang.Object
  extended by net.sf.doolin.oxml.source.AbstractOXMLSource
      extended by net.sf.doolin.oxml.source.URLOXMLSource
All Implemented Interfaces:
OXMLSource
Direct Known Subclasses:
ResourceOXMLSource

public class URLOXMLSource
extends AbstractOXMLSource

Builds a source from an URL.

Author:
Damien Coraboeuf

Constructor Summary
URLOXMLSource(URL url)
          Constructor
 
Method Summary
 void close()
          Does nothing.
 Document getSource()
          Parses the URL.
 
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

URLOXMLSource

public URLOXMLSource(URL url)
Constructor

Parameters:
url - URL to the document
Method Detail

close

public void close()
           throws IOException
Does nothing.

Throws:
IOException - If the source cannot be closed
See Also:
OXMLSource.close()

getSource

public Document getSource()
                   throws IOException
Parses the URL.

Returns:
DOM
Throws:
IOException - If the DOM cannot be read
See Also:
OXMLSource.getSource()


Copyright © 2011. All Rights Reserved.