Class DimapProductReader

    • Constructor Detail

      • DimapProductReader

        public DimapProductReader​(ProductReaderPlugIn readerPlugIn)
        Construct a new instance of a product reader for the given BEAM-DIMAP product reader plug-in.
        Parameters:
        readerPlugIn - the given BEAM-DIMAP product writer plug-in, must not be null
    • Method Detail

      • getProduct

        public Product getProduct()
      • getInputDir

        public File getInputDir()
      • getInputFile

        public File getInputFile()
      • readProductNodesImpl

        protected Product readProductNodesImpl()
                                        throws IOException
        Provides an implementation of the readProductNodes interface method. Clients implementing this method can be sure that the input object and eventually the subset information has already been set.

        This method is called as a last step in the readProductNodes(input, subsetInfo) method.

        Specified by:
        readProductNodesImpl in class AbstractProductReader
        Returns:
        a new product instance
        Throws:
        IOException - if an I/O error occurs
        IllegalFileFormatException - if the input file in not decodeable
      • isSubsetReadingFullySupported

        public boolean isSubsetReadingFullySupported()
        Description copied from class: AbstractProductReader
        Returns if the reader fully supports the reading of subsets. Including sub-sampling in X- and Y-direction. This method is intended to be a hint to the SNAP framework. Depending on the return value the reading can be optimised.

        Implementations of this class should override this method in order to specify if subset reading is fully supported. The default implementation returns false

        Overrides:
        isSubsetReadingFullySupported in class AbstractProductReader
        Returns:
        false or true, depending if subset reading is fully supported or not.
      • close

        public void close()
                   throws IOException
        Closes the access to all currently opened resources such as file input streams and all resources of this children directly owned by this reader. Its primary use is to allow the garbage collector to perform a vanilla job.

        This method should be called only if it is for sure that this object instance will never be used again. The results of referencing an instance of this class after a call to close() are undefined.

        Overrides of this method should always call super.close(); after disposing this instance.

        Specified by:
        close in interface ProductReader
        Overrides:
        close in class AbstractProductReader
        Throws:
        IOException - if an I/O error occurs