org.tm4j.net
Interface LocatorResolver

All Known Subinterfaces:
LocatorResolverManager
All Known Implementing Classes:
SimpleLocatorResolverManager, URILocatorResolver

public interface LocatorResolver

Interface for objects which are capable of returning a stream for a given locator.

Since:
0.7.0
Author:
Kal Ahmed

Method Summary
 java.io.InputStream resolve(Locator locator)
          Opens an input stream from the location specified by locator.
 

Method Detail

resolve

public java.io.InputStream resolve(Locator locator)
                            throws java.io.IOException,
                                   LocatorResolutionException
Opens an input stream from the location specified by locator.

Parameters:
locator - the locator for which an input stream is to be opened.
Throws:
java.io.IOException - if an unexpected condition occurred while attempting to open the input stream.
LocatorResolutionException - if the locator could not be resolved correctly.