public class URLImageInputStreamSpi extends ImageInputStreamSpi
ImageInputStreamSpi for instantiating an
ImageInputStream capable of connecting to a URL.
I basically rely on the existence of something to read from a File in
case this URL points to a File, otherwise I try to open up
an InputStream and I ask the
ImageIO.createImageInputStream(Object) to create an
ImageInputStream for it.
ImageInputStream,
ImageInputStreamSpi,
ImageIO.createImageInputStream(Object)| Constructor and Description |
|---|
URLImageInputStreamSpi()
Default constructor for a
URLImageInputStreamSpi; |
| Modifier and Type | Method and Description |
|---|---|
ImageInputStream |
createInputStreamInstance(Object input,
boolean useCache,
File cacheDir) |
String |
getDescription(Locale locale) |
canUseCacheFile, createInputStreamInstance, getInputClass, needsCacheFilegetVendorName, getVersion, onDeregistration, onRegistrationpublic URLImageInputStreamSpi()
URLImageInputStreamSpi;public ImageInputStream createInputStreamInstance(Object input, boolean useCache, File cacheDir)
createInputStreamInstance in class ImageInputStreamSpiImageInputStreamSpi.createInputStreamInstance(java.lang.Object,
boolean, java.io.File)public String getDescription(Locale locale)
getDescription in class IIOServiceProviderIIOServiceProvider.getDescription(Locale).Copyright © 2006–2019 GeoSolutions. All rights reserved.