Package org.esa.snap.core.dataio.rgb
Class ImageProductReaderPlugIn
java.lang.Object
org.esa.snap.core.dataio.rgb.ImageProductReaderPlugIn
- All Implemented Interfaces:
ProductIOPlugIn,ProductReaderPlugIn
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an instance of the actual product reader class.getDecodeQualification(Object object) Gets the qualification of the product reader to decode a given input object.String[]Gets the default file extensions associated with each of the format names returned by theProductIOPlugIn.getFormatNames()method.getDescription(Locale name) Gets a short description of this plug-in.String[]Gets the names of the product formats handled by this product I/O plug-in.Class[]Returns an array containing the classes that represent valid input types for this reader.Gets an instance ofSnapFileFilterfor use in aJFileChooser.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.esa.snap.core.dataio.ProductReaderPlugIn
getMetadataInspector
-
Field Details
-
FORMAT_NAME
- See Also:
-
-
Constructor Details
-
ImageProductReaderPlugIn
public ImageProductReaderPlugIn()
-
-
Method Details
-
getFormatNames
Description copied from interface:ProductIOPlugInGets the names of the product formats handled by this product I/O plug-in.- Specified by:
getFormatNamesin interfaceProductIOPlugIn- Returns:
- the names of the product formats handled by this product I/O plug-in, never
null
-
getDefaultFileExtensions
Description copied from interface:ProductIOPlugInGets the default file extensions associated with each of the format names returned by theProductIOPlugIn.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.- Specified by:
getDefaultFileExtensionsin interfaceProductIOPlugIn- Returns:
- the default file extensions for this product I/O plug-in, never
null
-
getDescription
Description copied from interface:ProductIOPlugInGets a short description of this plug-in. If the given locale is set tonullthe default locale is used.In a GUI, the description returned could be used as tool-tip text.
- Specified by:
getDescriptionin interfaceProductIOPlugIn- Parameters:
name- the local for the given description string, ifnullthe default locale is used- Returns:
- a textual description of this product reader/writer
-
getDecodeQualification
Description copied from interface:ProductReaderPlugInGets the qualification of the product reader to decode a given input object. Things to consider when implementing this method:- make sure method always succeeds; ensure that no exception is thrown
- make sure that it is fast (terminates within milliseconds)
- make sure method is thread safe
- use the INTENDED qualification with care; generic readers shall return SUITABLE at most
- Specified by:
getDecodeQualificationin interfaceProductReaderPlugIn- Parameters:
object- the input object- Returns:
- the decode qualification
-
getInputTypes
Description copied from interface:ProductReaderPlugInReturns an array containing the classes that represent valid input types for this reader.Instances of the classes returned in this array are valid objects for the
setInputmethod of theProductReaderinterface (the method will not throw anInvalidArgumentExceptionin this case).- Specified by:
getInputTypesin interfaceProductReaderPlugIn- Returns:
- an array containing valid input types, never
null
-
createReaderInstance
Description copied from interface:ProductReaderPlugInCreates an instance of the actual product reader class. This method should never returnnull.- Specified by:
createReaderInstancein interfaceProductReaderPlugIn- Returns:
- a new reader instance, never
null
-
getProductFileFilter
Description copied from interface:ProductIOPlugInGets an instance ofSnapFileFilterfor use in aJFileChooser.- Specified by:
getProductFileFilterin interfaceProductIOPlugIn- Returns:
- a file filter or
nullif this plugin doesn't support file filter. If not provided, the reader will not be available in SNAP Desktop.
-