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

Object
  extended by IIOServiceProvider
      extended by ImageOutputStreamSpi
          extended by 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 ImageOutputStreamSpi
canUseCacheFile, createOutputStreamInstance, getOutputClass, needsCacheFile
 
Methods inherited from class IIOServiceProvider
getVendorName, getVersion, onDeregistration
 
Methods inherited from class 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-2010 GeoSolutions. All Rights Reserved.