Interface GranuleAccessProvider

  • All Known Implementing Classes:
    CogGranuleAccessProvider

    public interface GranuleAccessProvider
    An interface providing multiple types of entities involved when getting access to a Granule.

    • An ImageReaderSpi to create an ImageReader to decode that granule
    • An ImageInputStreamSpi to create a stream for the granule
    • An AbstractGridFormat supporting the type of format of that granule
    • An AbstractGridCoverage2DReader able to read that granule
    • A MaskOverviewProvider with details on mask and overviews for that granule
    • Field Detail

      • SUGGESTED_READER_SPI

        static final Hints.Key SUGGESTED_READER_SPI
      • SUGGESTED_STREAM_SPI

        static final Hints.Key SUGGESTED_STREAM_SPI
      • SUGGESTED_FORMAT

        static final Hints.Key SUGGESTED_FORMAT
      • GRANULE_ACCESS_PROVIDER

        static final Hints.Key GRANULE_ACCESS_PROVIDER
    • Method Detail

      • setGranuleInput

        void setGranuleInput​(Object input)
                      throws IOException
        Input to be set before invoking any method of the provider
        Throws:
        IOException
      • getFormat

        AbstractGridFormat getFormat()
                              throws IOException
        Return the AbstractGridFormat supporting the type of the input granule
        Throws:
        IOException
      • getGridCoverageReader

        AbstractGridCoverage2DReader getGridCoverageReader()
                                                    throws IOException
        Return a GridCoverageReader supporting the type of the input granule
        Throws:
        IOException
      • getInputStreamSpi

        ImageInputStreamSpi getInputStreamSpi()
                                       throws IOException
        Return an ImageInputStreamSpi to create streams on the input granule
        Throws:
        IOException
      • getImageReaderSpi

        ImageReaderSpi getImageReaderSpi()
                                  throws IOException
        Return an ImageReaderSpi to create readers on the input granule
        Throws:
        IOException
      • getMaskOverviewsProvider

        MaskOverviewProvider getMaskOverviewsProvider()
                                               throws IOException
        Throws:
        IOException
      • getImageInputStream

        ImageInputStream getImageInputStream()
                                      throws IOException
        Throws:
        IOException
      • getImageReader

        ImageReader getImageReader()
                            throws IOException
        Throws:
        IOException
      • copyProviders

        GranuleAccessProvider copyProviders()
        Get a copy of this GranuleAccessProviders with same SPIs, factories and config