Class Slice2DIndex.Slice2DIndexManager

  • Enclosing class:
    Slice2DIndex

    public static class Slice2DIndex.Slice2DIndexManager
    extends Object
    An wrapper for variable index files.
    Author:
    Andrea Antonello, Simone Giannecchini, GeoSolutions
    • Constructor Detail

      • Slice2DIndexManager

        public Slice2DIndexManager​(File file)
    • Method Detail

      • open

        public void open()
                  throws IOException
        Throws:
        IOException
      • getSlice2DIndex

        public Slice2DIndex getSlice2DIndex​(int imageIndex)
                                     throws IOException
        Read a Slice2DIndex from file given the imageIndex.
        Parameters:
        imageIndex - the imageIndex to look for.
        Returns:
        the Slice2DIndex for the picked image.
        Throws:
        IOException
      • dispose

        public void dispose()
                     throws IOException
        Throws:
        IOException
      • writeIndexFile

        public static void writeIndexFile​(File file,
                                          List<Slice2DIndex> indexList)
                                   throws IOException
        Utility method to write an index file.
        Parameters:
        file - the file to write to.
        indexList - the list of Slice2DIndex to dump to file.
        Throws:
        IOException
      • getNumberOfRecords

        public int getNumberOfRecords()
                               throws IOException
        Throws:
        IOException
      • finalize

        protected void finalize()
                         throws Throwable
        Overrides:
        finalize in class Object
        Throws:
        Throwable