public abstract class AbstractLocator extends Object implements Locator
An adapter class for implementing concrete Locator
classes.
This class implements the Locator
interface and provides dummy
implementations for most of the methods defined in this interface. It can
serve as a starting point for the implementation of custom
Locator
classes; then the developer only needs to deal with
the methods that are really required.
Because the getURL()
method must be implemented in every
locator, no dummy implementation for this method is provided.
Constructor and Description |
---|
AbstractLocator() |
Modifier and Type | Method and Description |
---|---|
File |
getFile()
Dummy implementation of this interface method.
|
InputStream |
getInputStream()
Dummy implementation of this interface method.
|
public File getFile() throws LocatorException
getFile
in interface Locator
LocatorException
- if an error occurspublic InputStream getInputStream() throws IOException, LocatorException
getInputStream
in interface Locator
IOException
- if an IO error occursLocatorException
- if an internal error occursCopyright © 2016 The JGUIraffe Team. All rights reserved.