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, needsCacheFile
getVendorName, getVersion, onDeregistration, onRegistration
public StringImageInputStreamSpi()
StringImageInputStreamSpi
;public ImageInputStream createInputStreamInstance(Object input, boolean useCache, File cacheDir) throws IOException
createInputStreamInstance
in class ImageInputStreamSpi
IOException
ImageInputStreamSpi.createInputStreamInstance(java.lang.Object,
boolean, java.io.File)
public String getDescription(Locale locale)
getDescription
in class IIOServiceProvider
IIOServiceProvider.getDescription(Locale).
Copyright © 2006–2019 GeoSolutions. All rights reserved.