net.ontopia.infoset.utils
Class URLLocatorReaderFactory

java.lang.Object
  extended by net.ontopia.infoset.utils.URLLocatorReaderFactory
All Implemented Interfaces:
LocatorReaderFactoryIF

public class URLLocatorReaderFactory
extends java.lang.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.


Constructor Summary
URLLocatorReaderFactory()
           
 
Method Summary
 java.io.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
 

Constructor Detail

URLLocatorReaderFactory

public URLLocatorReaderFactory()
Method Detail

createReader

public java.io.Reader createReader(LocatorIF locator)
                            throws java.io.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:
java.io.IOException


Copyright © 2000-2012 Ontopia.