net.ontopia.infoset.utils
Class URLLocatorReaderFactory
java.lang.Object
net.ontopia.infoset.utils.URLLocatorReaderFactory
- All Implemented Interfaces:
- LocatorReaderFactoryIF
public class URLLocatorReaderFactory
- extends Object
- implements LocatorReaderFactoryIF
INTERNAL: Creates a Reader for a LocatorIF that contains a URL in
its address field.
Warning: At this point the reader uses the default charcter
encoding. In the future the correct encoding will be chosen based
on information from the actual URL connection.
Method Summary |
Reader |
createReader(LocatorIF locator)
INTERNAL: Returns a reader that can read the contents of the
resource referenced by the locator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLLocatorReaderFactory
public URLLocatorReaderFactory()
createReader
public Reader createReader(LocatorIF locator)
throws IOException
- Description copied from interface:
LocatorReaderFactoryIF
- INTERNAL: Returns a reader that can read the contents of the
resource referenced by the locator.
- Specified by:
createReader
in interface LocatorReaderFactoryIF
- Returns:
- A reader for the locator. An IOException is thrown if a
reader cannot be created.
- Throws:
IOException
Copyright © 2000-2012 Ontopia.