net.sf.doolin.oxml.source
Class URLOXMLSource
java.lang.Object
net.sf.doolin.oxml.source.AbstractOXMLSource
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLOXMLSource
public URLOXMLSource(URL url)
- Constructor
- Parameters:
url - URL to the document
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.