it.geosolutions.imageio.plugins.jp2k
Class JP2KKakaduImageReaderSpi

Object
  extended by IIOServiceProvider
      extended by ImageReaderWriterSpi
          extended by ImageReaderSpi
              extended by JP2KKakaduImageReaderSpi
All Implemented Interfaces:
RegisterableService

public class JP2KKakaduImageReaderSpi
extends ImageReaderSpi

Service provider interface for the JPEG2000SimpleBox

Author:
Simone Giannecchini, GeoSolutions., Daniele Romagnoli, GeoSolutions.

Field Summary
protected  boolean registered
           
 
Fields inherited from class ImageReaderSpi
inputTypes, STANDARD_INPUT_TYPE, writerSpiNames
 
Fields inherited from class ImageReaderWriterSpi
names, pluginClassName
 
Constructor Summary
JP2KKakaduImageReaderSpi()
           
 
Method Summary
 boolean canDecodeInput(Object input)
          This method checks if the provided input can be decoded from this SPI
 ImageReader createReaderInstance(Object source)
          Returns an instance of the JP2KKakaduImageReader
 String getDescription(Locale locale)
           
 void onRegistration(ServiceRegistry registry, Class category)
          Upon registration, this method ensures that this SPI is listed at the top of the ImageReaderSpi items, so that it will be invoked before the default ImageReaderSpi
 
Methods inherited from class ImageReaderSpi
createReaderInstance, getImageWriterSpiNames, getInputTypes, isOwnReader
 
Methods inherited from class ImageReaderWriterSpi
getExtraImageMetadataFormatNames, getExtraStreamMetadataFormatNames, getFileSuffixes, getFormatNames, getImageMetadataFormat, getMIMETypes, getNativeImageMetadataFormatName, getNativeStreamMetadataFormatName, getPluginClassName, getStreamMetadataFormat, isStandardImageMetadataFormatSupported, isStandardStreamMetadataFormatSupported
 
Methods inherited from class IIOServiceProvider
getVendorName, getVersion, onDeregistration
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registered

protected boolean registered
Constructor Detail

JP2KKakaduImageReaderSpi

public JP2KKakaduImageReaderSpi()
Method Detail

canDecodeInput

public boolean canDecodeInput(Object input)
                       throws IOException
This method checks if the provided input can be decoded from this SPI

Specified by:
canDecodeInput in class ImageReaderSpi
Throws:
IOException

createReaderInstance

public ImageReader createReaderInstance(Object source)
                                 throws IOException
Returns an instance of the JP2KKakaduImageReader

Specified by:
createReaderInstance in class ImageReaderSpi
Throws:
IOException
See Also:
ImageReaderSpi.createReaderInstance(java.lang.Object)

getDescription

public String getDescription(Locale locale)
Specified by:
getDescription in class IIOServiceProvider
See Also:
IIOServiceProvider.getDescription(java.util.Locale)

onRegistration

public void onRegistration(ServiceRegistry registry,
                           Class category)
Upon registration, this method ensures that this SPI is listed at the top of the ImageReaderSpi items, so that it will be invoked before the default ImageReaderSpi

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.


Copyright © 2006-2010 GeoSolutions. All Rights Reserved.