public static class Slice2DIndex.Slice2DIndexManager extends Object
Constructor and Description |
---|
Slice2DIndexManager(File file) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
protected void |
finalize() |
int |
getNumberOfRecords() |
Slice2DIndex |
getSlice2DIndex(int imageIndex)
Read a
Slice2DIndex from file given the imageIndex. |
void |
open() |
static void |
writeIndexFile(File file,
List<Slice2DIndex> indexList)
Utility method to write an index file.
|
public Slice2DIndexManager(File file)
public void open() throws IOException
IOException
public Slice2DIndex getSlice2DIndex(int imageIndex) throws IOException
Slice2DIndex
from file given the imageIndex.imageIndex
- the imageIndex to look for.Slice2DIndex
for the picked image.IOException
public void dispose() throws IOException
IOException
public static void writeIndexFile(File file, List<Slice2DIndex> indexList) throws IOException
file
- the file to write to.indexList
- the list of Slice2DIndex
to dump to file.IOException
public int getNumberOfRecords() throws IOException
IOException
Copyright © 1996–2019 Geotools. All rights reserved.