Class DimapProductReaderPlugIn

java.lang.Object
org.esa.snap.core.dataio.dimap.DimapProductReaderPlugIn
All Implemented Interfaces:
ProductIOPlugIn, ProductReaderPlugIn

public class DimapProductReaderPlugIn extends Object implements ProductReaderPlugIn
The 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 Details

    • DimapProductReaderPlugIn

      public DimapProductReaderPlugIn()
      Constructs a new BEAM-DIMAP product reader plug-in instance.
  • Method Details

    • getFormatNames

      public String[] getFormatNames()
      Returns a string array containing the single entry "BEAM-DIMAP".
      Specified by:
      getFormatNames in interface ProductIOPlugIn
      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 getFormatNames() method.

      The string array returned shall always have the same length as the array returned by the getFormatNames() method.

      The extensions returned in the string array shall always include a leading colon ('.') character, e.g. ".hdf"

      Specified by:
      getDefaultFileExtensions in interface ProductIOPlugIn
      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 to null the default locale is used.

      In a GUI, the description returned could be used as tool-tip text.

      Specified by:
      getDescription in interface ProductIOPlugIn
      Parameters:
      name - the local for the given description string, if null 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 a java.io.File - an abstract file path.

      Specified by:
      getDecodeQualification in interface ProductReaderPlugIn
      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 the DimapProductReader class (the method will not throw an InvalidArgumentException in this case).

      Specified by:
      getInputTypes in interface ProductReaderPlugIn
      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 interface ProductReaderPlugIn
      Returns:
      a new instance of the DimapProductReader class
    • getProductFileFilter

      public SnapFileFilter getProductFileFilter()
      Description copied from interface: ProductIOPlugIn
      Gets an instance of SnapFileFilter for use in a JFileChooser.
      Specified by:
      getProductFileFilter in interface ProductIOPlugIn
      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)