it.geosolutions.imageio.stream.output.spi
Class URLImageOutputStreamSpi

java.lang.Object
  extended by javax.imageio.spi.IIOServiceProvider
      extended by javax.imageio.spi.ImageOutputStreamSpi
          extended by it.geosolutions.imageio.stream.output.spi.URLImageOutputStreamSpi
All Implemented Interfaces:
RegisterableService

public class URLImageOutputStreamSpi
extends ImageOutputStreamSpi

A Special ImageOutputStreamSpi Service Provider Interface which is able to provide provide an ImageOutputStream object for writing to a URL in case such a URL is writable of course.

Author:
Simone Giannecchini, GeoSolutions

Constructor Summary
URLImageOutputStreamSpi()
           
 
Method Summary
 ImageOutputStream createOutputStreamInstance(Object output, boolean useCache, File cacheDir)
          Returns an instance of the ImageOutputStream implementation associated with this service provider.
 String getDescription(Locale locale)
           
 
Methods inherited from class javax.imageio.spi.ImageOutputStreamSpi
canUseCacheFile, createOutputStreamInstance, getOutputClass, needsCacheFile
 
Methods inherited from class javax.imageio.spi.IIOServiceProvider
getVendorName, getVersion, onDeregistration, onRegistration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLImageOutputStreamSpi

public URLImageOutputStreamSpi()
Method Detail

getDescription

public String getDescription(Locale locale)
Specified by:
getDescription in class IIOServiceProvider

createOutputStreamInstance

public ImageOutputStream createOutputStreamInstance(Object output,
                                                    boolean useCache,
                                                    File cacheDir)
Returns an instance of the ImageOutputStream implementation associated with this service provider.

Specified by:
createOutputStreamInstance in class ImageOutputStreamSpi
Returns:
an ImageOutputStream instance.
Throws:
IllegalArgumentException - if input is not an instance of the correct class or is null.


Copyright © 2006–2014 GeoSolutions. All rights reserved.