Package org.geotools.imageio.netcdf
Class Slice2DIndex.Slice2DIndexManager
- Object
-
- Slice2DIndexManager
-
- Enclosing class:
- Slice2DIndex
public static class Slice2DIndex.Slice2DIndexManager extends Object
An wrapper for variable index files.- Author:
- Andrea Antonello, Simone Giannecchini, GeoSolutions
-
-
Constructor Summary
Constructors Constructor Description Slice2DIndexManager(File file)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()protected voidfinalize()intgetNumberOfRecords()Slice2DIndexgetSlice2DIndex(int imageIndex)Read aSlice2DIndexfrom file given the imageIndex.voidopen()static voidwriteIndexFile(File file, List<Slice2DIndex> indexList)Utility method to write an index file.
-
-
-
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 aSlice2DIndexfrom file given the imageIndex.- Parameters:
imageIndex- the imageIndex to look for.- Returns:
- the
Slice2DIndexfor 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 ofSlice2DIndexto dump to file.- Throws:
IOException
-
getNumberOfRecords
public int getNumberOfRecords() throws IOException- Throws:
IOException
-
-