01: package it.geosolutions.imageio.plugins.jhdf;
02:
03: import java.io.IOException;
04: import java.util.Locale;
05:
06: import javax.imageio.ImageReader;
07: import javax.imageio.spi.ImageReaderSpi;
08:
09: public abstract class BaseHDFImageReaderSpi extends ImageReaderSpi {
10:
11: protected final static int[] spiMutex = new int[] { 0 };
12:
13: public BaseHDFImageReaderSpi(final String vendorName,
14: String version, String[] formatNames, String[] suffixes,
15: String[] mimeTypes, String readerCN,
16: Class[] standard_input_type, String[] wsn,
17: boolean supportsStandardStreamMetadataFormat,
18: String nativeStreamMetadataFormatName,
19: String nativeStreamMetadataFormatClassName,
20: String[] extraStreamMetadataFormatNames,
21: String[] extraStreamMetadataFormatClassNames,
22: boolean supportsStandardImageMetadataFormat,
23: String nativeImageMetadataFormatName,
24: String nativeImageMetadataFormatClassName,
25: String[] extraImageMetadataFormatNames,
26: String[] extraImageMetadataFormatClassNames) {
27: super (vendorName, version, formatNames, suffixes, mimeTypes,
28: readerCN, standard_input_type, wsn,
29: supportsStandardStreamMetadataFormat,
30: nativeStreamMetadataFormatName,
31: nativeStreamMetadataFormatClassName,
32: extraStreamMetadataFormatNames,
33: extraStreamMetadataFormatClassNames,
34: supportsStandardImageMetadataFormat,
35: nativeImageMetadataFormatName,
36: nativeImageMetadataFormatClassName,
37: extraImageMetadataFormatNames,
38: extraImageMetadataFormatClassNames);
39: }
40:
41: /**
42: * This method checks if the provided input can be decoded from this SPI
43: */
44: public abstract boolean canDecodeInput(final Object input)
45: throws IOException;
46:
47: /**
48: * Returns an instance of the BaseHDFImageReader
49: *
50: * @see javax.imageio.spi.ImageReaderSpi#createReaderInstance(java.lang.Object)
51: */
52: public abstract ImageReader createReaderInstance(Object source)
53: throws IOException;
54:
55: /**
56: * @see javax.imageio.spi.IIOServiceProvider#getDescription(java.util.Locale)
57: */
58: public abstract String getDescription(Locale locale);
59:
60: }
|