public class ImageProductReaderPlugIn extends Object implements ProductReaderPlugIn
| Modifier and Type | Field and Description |
|---|---|
static String |
FORMAT_NAME |
| Constructor and Description |
|---|
ImageProductReaderPlugIn() |
| Modifier and Type | Method and Description |
|---|---|
ProductReader |
createReaderInstance()
Creates an instance of the actual product reader class.
|
DecodeQualification |
getDecodeQualification(Object object)
Gets the qualification of the product reader to decode a given input object.
|
String[] |
getDefaultFileExtensions()
Gets the default file extensions associated with each of the format names returned
by the
ProductIOPlugIn.getFormatNames() method. |
String |
getDescription(Locale name)
Gets a short description of this plug-in.
|
String[] |
getFormatNames()
Gets the names of the product formats handled by this product I/O plug-in.
|
Class[] |
getInputTypes()
Returns an array containing the classes that represent valid input types for this reader.
|
SnapFileFilter |
getProductFileFilter()
Gets an instance of
SnapFileFilter for use in a JFileChooser. |
public static final String FORMAT_NAME
public String[] getFormatNames()
ProductIOPlugIngetFormatNames in interface ProductIOPlugInnullpublic String[] getDefaultFileExtensions()
ProductIOPlugInProductIOPlugIn.getFormatNames() method. The string array returned
shall have the same length as the array returned by the
ProductIOPlugIn.getFormatNames() method.
The extensions returned in the
string array also shall always include a leading colon ('.') character,
e.g. ".hdf". If there is no default files extensions an empty array can
be returned.
getDefaultFileExtensions in interface ProductIOPlugInnullpublic String getDescription(Locale name)
ProductIOPlugInnull the default locale is
used.
In a GUI, the description returned could be used as tool-tip text.
getDescription in interface ProductIOPlugInname - the local for the given description string, if null the default locale is usedpublic DecodeQualification getDecodeQualification(Object object)
ProductReaderPlugIngetDecodeQualification in interface ProductReaderPlugInobject - the input objectpublic Class[] getInputTypes()
ProductReaderPlugIn Instances of the classes returned in this array are valid objects for the setInput method of the
ProductReader interface (the method will not throw an InvalidArgumentException in this
case).
getInputTypes in interface ProductReaderPlugInnullpublic ProductReader createReaderInstance()
ProductReaderPlugInnull.createReaderInstance in interface ProductReaderPlugInnullpublic SnapFileFilter getProductFileFilter()
ProductIOPlugInSnapFileFilter for use in a JFileChooser.getProductFileFilter in interface ProductIOPlugInnull if this plugin doesn't support file filterCopyright © 2014–2017 European Space Agency (ESA). All rights reserved.