Class DimapProductReaderPlugIn
- All Implemented Interfaces:
ProductIOPlugIn,ProductReaderPlugIn
DimapProductReaderPlugIn class is an implementation of the ProductReaderPlugIn
interface exclusively for data products having the BEAM-DIMAP product format.
XMLDecoder plug-ins are used to provide meta-information about a particular data format and to create instances of the actual reader objects.
The BEAM-DIMAP version history is provided in the API doc of the DimapProductWriterPlugIn.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new BEAM-DIMAP product reader plug-in instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates an instance of the actual BEAM-DIMAP product reader class.getDecodeQualification(Object object) Checks whether the given object is an acceptable input for this product reader and if so, the method checks if it's content has the BEAM-DIMAP format.String[]Gets the default file extensions associated with each of the format names returned by themethod.getFormatNames()getDescription(Locale name) Gets a short description of this plug-in.String[]Returns a string array containing the single entry"BEAM-DIMAP".Class[]Returns an array containing the classes that represent valid input types for an BEAM-DIMAP product reader.Gets an instance ofSnapFileFilterfor use in aJFileChooser.voidMethods 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
-
Constructor Details
-
DimapProductReaderPlugIn
public DimapProductReaderPlugIn()Constructs a new BEAM-DIMAP product reader plug-in instance.
-
-
Method Details
-
getFormatNames
Returns a string array containing the single entry"BEAM-DIMAP".- Specified by:
getFormatNamesin interfaceProductIOPlugIn- Returns:
- the names of the product formats handled by this product I/O plug-in, never
null
-
getDefaultFileExtensions
Gets the default file extensions associated with each of the format names returned by themethod.getFormatNames()The string array returned shall always have the same length as the array returned by the
method.getFormatNames()The extensions returned in the string array shall always include a leading colon ('.') character, e.g.
".hdf"- Specified by:
getDefaultFileExtensionsin interfaceProductIOPlugIn- Returns:
- the default file extensions for this product I/O plug-in, never
null
-
getDescription
Gets 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
Checks whether the given object is an acceptable input for this product reader and if so, the method checks if it's content has the BEAM-DIMAP format.BEAM-DIMAP product readers accept
java.lang.String- a file path or ajava.io.File- an abstract file path.- Specified by:
getDecodeQualificationin interfaceProductReaderPlugIn- Parameters:
object- the input object- Returns:
trueif the given input is an object referencing a physical BEAM-DIMAP data source.
-
getInputTypes
Returns an array containing the classes that represent valid input types for an BEAM-DIMAP product reader.Instances of the classes returned in this array are valid objects for the
setInputmethod of theDimapProductReaderclass (the method will not throw anInvalidArgumentExceptionin this case).- Specified by:
getInputTypesin interfaceProductReaderPlugIn- Returns:
- an array containing valid input types, never
null
-
createReaderInstance
Creates an instance of the actual BEAM-DIMAP product reader class.- Specified by:
createReaderInstancein interfaceProductReaderPlugIn- Returns:
- a new instance of the
DimapProductReaderclass
-
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.
-
addReaderExtender
-
removeReaderExtender
-