public class StringImageInputStreamSpi extends ImageInputStreamSpi
ImageInputStreamSpi for instantiating an
ImageInputStream capable of connecting to a String.
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 |
|---|
StringImageInputStreamSpi()
Default constructor for a
StringImageInputStreamSpi; |
| 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 StringImageInputStreamSpi()
StringImageInputStreamSpi;public ImageInputStream createInputStreamInstance(Object input, boolean useCache, File cacheDir) throws IOException
createInputStreamInstance in class ImageInputStreamSpiIOExceptionImageInputStreamSpi.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.