org.geotoolkit.image.io.stream
Class UrlInputSpi
Object
IIOServiceProvider
ImageInputStreamSpi
UrlInputSpi
- All Implemented Interfaces:
- RegisterableService
public class UrlInputSpi
- extends ImageInputStreamSpi
A service provider for creating ImageInputStreams from URLs.
- Since:
- 2.4
- Version:
- 3.00
- Author:
- Martin Desruisseaux (IRD)
- Module:
|
Constructor Summary |
UrlInputSpi()
Creates a new instance with no proxy. |
UrlInputSpi(Proxy proxy)
Creates a new instance with the specified proxy. |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlInputSpi
public UrlInputSpi()
- Creates a new instance with no proxy.
UrlInputSpi
public UrlInputSpi(Proxy proxy)
- Creates a new instance with the specified proxy.
- Parameters:
proxy - The proxy to use.- Since:
- 2.5
getDescription
public String getDescription(Locale locale)
- Returns a brief, human-readable description of this service
provider and its associated implementation.
- Specified by:
getDescription in class IIOServiceProvider
needsCacheFile
public boolean needsCacheFile()
- Returns
true since the input stream requires the use of a cache file.
- Overrides:
needsCacheFile in class ImageInputStreamSpi
createInputStreamInstance
public ImageInputStream createInputStreamInstance(Object input,
boolean useCache,
File cacheDir)
throws IOException
- Constructs an input stream for an URL.
- Specified by:
createInputStreamInstance in class ImageInputStreamSpi
- Throws:
IOException - If the stream can not be created.
Copyright © 2009-2013 Geotoolkit.org. All Rights Reserved.