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

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

public class FileImageOutputStreamExtImplSpi
extends ImageOutputStreamSpi

A special ImageOutputStream Service Provider Interface which is able to provide a FileImageOutputStreamExt

Author:
Daniele Romagnoli, GeoSolutions, Simone Giannecchini, GeoSolutions

Constructor Summary
FileImageOutputStreamExtImplSpi()
           
 
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)
           
 void onRegistration(ServiceRegistry registry, Class category)
          Upon registration, this method ensures that this SPI will be invoked before the default FileImageOutputStreamSpi
 
Methods inherited from class javax.imageio.spi.ImageOutputStreamSpi
canUseCacheFile, createOutputStreamInstance, getOutputClass, needsCacheFile
 
Methods inherited from class javax.imageio.spi.IIOServiceProvider
getVendorName, getVersion, onDeregistration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileImageOutputStreamExtImplSpi

public FileImageOutputStreamExtImplSpi()
Method Detail

getDescription

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

onRegistration

public void onRegistration(ServiceRegistry registry,
                           Class category)
Upon registration, this method ensures that this SPI will be invoked before the default FileImageOutputStreamSpi

Specified by:
onRegistration in interface RegisterableService
Overrides:
onRegistration in class IIOServiceProvider
Parameters:
registry - ServiceRegistry where this object has been registered.
category - a Class object indicating the registry category under which this object has been registered.

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–2013 GeoSolutions. All rights reserved.