Package thredds.inventory.partition
Interface IndexReader
-
public interface IndexReaderKnows how to read ncx Index files, to decouple eg from GRIB- Since:
- 11/10/13
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIndexReader.AddChildCallback
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisPartition(Path indexFile)Open an ncx file and find out what type it isbooleanreadChildren(Path indexFile, IndexReader.AddChildCallback callback)Open a Partition ncx file and read children indexesbooleanreadMFiles(Path indexFile, List<MFile> result)Read the MFiles from a GribCollection index file
-
-
-
Method Detail
-
readChildren
boolean readChildren(Path indexFile, IndexReader.AddChildCallback callback) throws IOException
Open a Partition ncx file and read children indexes- Parameters:
indexFile- the Partition ncx index file to opencallback- for each child index, call this back- Returns:
- true if indexFile is a partition collection
- Throws:
IOException- on bad things
-
isPartition
boolean isPartition(Path indexFile) throws IOException
Open an ncx file and find out what type it is- Parameters:
indexFile- the ncx index file to open- Returns:
- true if its a partition type index
- Throws:
IOException- on bad
-
readMFiles
boolean readMFiles(Path indexFile, List<MFile> result) throws IOException
Read the MFiles from a GribCollection index file- Parameters:
indexFile- the Partition ncx index file to openresult- put results in this list- Returns:
- true if indexFile is a GribCollection collection, and read ok
- Throws:
IOException
-
-