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

Object
  extended by IIOServiceProvider
      extended by ImageOutputStreamSpi
          extended by StringImageOutputStreamSpi
All Implemented Interfaces:
RegisterableService

public class StringImageOutputStreamSpi
extends ImageOutputStreamSpi

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

Author:
Simone Giannecchini, GeoSolutions

Constructor Summary
StringImageOutputStreamSpi()
           
 
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 ImageOutputStreamSpi
canUseCacheFile, createOutputStreamInstance, getOutputClass, needsCacheFile
 
Methods inherited from class IIOServiceProvider
getVendorName, getVersion, onDeregistration, onRegistration
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringImageOutputStreamSpi

public StringImageOutputStreamSpi()
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-2010 GeoSolutions. All Rights Reserved.