Class DimapProductReaderPlugIn
- java.lang.Object
-
- org.esa.snap.core.dataio.dimap.DimapProductReaderPlugIn
-
- All Implemented Interfaces:
ProductIOPlugIn
,ProductReaderPlugIn
public class DimapProductReaderPlugIn extends Object implements ProductReaderPlugIn
TheDimapProductReaderPlugIn
class is an implementation of theProductReaderPlugIn
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:
DimapProductReader
-
-
Constructor Summary
Constructors Constructor Description DimapProductReaderPlugIn()
Constructs a new BEAM-DIMAP product reader plug-in instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addReaderExtender(DimapProductReader.ReaderExtender extender)
ProductReader
createReaderInstance()
Creates an instance of the actual BEAM-DIMAP product reader class.DecodeQualification
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[]
getDefaultFileExtensions()
Gets the default file extensions associated with each of the format names returned by the
method.getFormatNames()
String
getDescription(Locale name)
Gets a short description of this plug-in.String[]
getFormatNames()
Returns a string array containing the single entry"BEAM-DIMAP"
.Class[]
getInputTypes()
Returns an array containing the classes that represent valid input types for an BEAM-DIMAP product reader.SnapFileFilter
getProductFileFilter()
Gets an instance ofSnapFileFilter
for use in aJFileChooser
.void
removeReaderExtender(DimapProductReader.ReaderExtender extender)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.esa.snap.core.dataio.ProductReaderPlugIn
getMetadataInspector
-
-
-
-
Method Detail
-
getFormatNames
public String[] getFormatNames()
Returns a string array containing the single entry"BEAM-DIMAP"
.- Specified by:
getFormatNames
in interfaceProductIOPlugIn
- Returns:
- the names of the product formats handled by this product I/O plug-in, never
null
-
getDefaultFileExtensions
public String[] getDefaultFileExtensions()
Gets the default file extensions associated with each of the format names returned by the
method.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:
getDefaultFileExtensions
in interfaceProductIOPlugIn
- Returns:
- the default file extensions for this product I/O plug-in, never
null
-
getDescription
public String getDescription(Locale name)
Gets a short description of this plug-in. If the given locale is set tonull
the default locale is used.In a GUI, the description returned could be used as tool-tip text.
- Specified by:
getDescription
in interfaceProductIOPlugIn
- Parameters:
name
- the local for the given description string, ifnull
the default locale is used- Returns:
- a textual description of this product reader/writer
-
getDecodeQualification
public DecodeQualification 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.BEAM-DIMAP product readers accept
java.lang.String
- a file path or ajava.io.File
- an abstract file path.- Specified by:
getDecodeQualification
in interfaceProductReaderPlugIn
- Parameters:
object
- the input object- Returns:
true
if the given input is an object referencing a physical BEAM-DIMAP data source.
-
getInputTypes
public Class[] 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
setInput
method of theDimapProductReader
class (the method will not throw anInvalidArgumentException
in this case).- Specified by:
getInputTypes
in interfaceProductReaderPlugIn
- Returns:
- an array containing valid input types, never
null
-
createReaderInstance
public ProductReader createReaderInstance()
Creates an instance of the actual BEAM-DIMAP product reader class.- Specified by:
createReaderInstance
in interfaceProductReaderPlugIn
- Returns:
- a new instance of the
DimapProductReader
class
-
getProductFileFilter
public SnapFileFilter getProductFileFilter()
Description copied from interface:ProductIOPlugIn
Gets an instance ofSnapFileFilter
for use in aJFileChooser
.- Specified by:
getProductFileFilter
in interfaceProductIOPlugIn
- Returns:
- a file filter or
null
if this plugin doesn't support file filter. If not provided, the reader will not be available in SNAP Desktop.
-
addReaderExtender
public void addReaderExtender(DimapProductReader.ReaderExtender extender)
-
removeReaderExtender
public void removeReaderExtender(DimapProductReader.ReaderExtender extender)
-
-