Class AbstractProductBuilder

    • Field Detail

      • sourceProduct

        protected Product sourceProduct
      • sourceProductOwner

        protected boolean sourceProductOwner
      • sceneRasterWidth

        protected int sceneRasterWidth
      • sceneRasterHeight

        protected int sceneRasterHeight
      • newProductName

        protected String newProductName
      • newProductDesc

        protected String newProductDesc
    • Constructor Detail

      • AbstractProductBuilder

        public AbstractProductBuilder​(boolean sourceProductOwner)
    • Method Detail

      • getSourceProduct

        public Product getSourceProduct()
      • isSourceProductOwner

        public boolean isSourceProductOwner()
      • setNewProductDesc

        public void setNewProductDesc​(String newProductDesc)
      • setNewProductName

        public void setNewProductName​(String newProductName)
      • getSceneRasterWidth

        public int getSceneRasterWidth()
      • getSceneRasterHeight

        public int getSceneRasterHeight()
      • readProductNodesImpl

        protected abstract Product readProductNodesImpl()
                                                 throws IOException
        Description copied from class: AbstractProductReader
        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
      • 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
      • addFlagCodingsToProduct

        protected void addFlagCodingsToProduct​(Product target)
      • addIndexCodingsToProduct

        protected void addIndexCodingsToProduct​(Product target)
      • cloneFlags

        protected void cloneFlags​(FlagCoding sourceFlagCoding,
                                  FlagCoding destFlagCoding)
      • addMetadataToProduct

        protected void addMetadataToProduct​(Product product)
      • cloneMetadataElementsAndAttributes

        protected void cloneMetadataElementsAndAttributes​(MetadataElement sourceRoot,
                                                          MetadataElement destRoot,
                                                          int level)
      • disposeBandMap

        protected void disposeBandMap()