Package thredds.inventory
Class NcmlCollectionReader
- java.lang.Object
-
- thredds.inventory.NcmlCollectionReader
-
public class NcmlCollectionReader extends Object
Convert NcML into a CollectionManager. Must have aggregation and scan/scanFmrc element. Tracks inner and outer ncml modifications.- Since:
- Feb 24, 2010
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CollectionManagergetCollectionManager()org.jdom2.ElementgetNcmlInner()org.jdom2.ElementgetNcmlOuter()static NcmlCollectionReaderopen(String ncmlLocation, Formatter errlog)Read an NcML file from a URL location, and construct a NcmlCollectionReader from its scan or scanFmrc element.static NcmlCollectionReaderreadNcml(String ncmlString, Formatter errlog)Read an NcML file from a String, and construct a NcmlCollectionReader from its scan or scanFmrc element.static NcmlCollectionReaderreadNcML(String ncmlString, Formatter errlog)Deprecated.
-
-
-
Method Detail
-
readNcML
@Deprecated public static NcmlCollectionReader readNcML(String ncmlString, Formatter errlog) throws IOException
Deprecated.Read an NcML file from a String, and construct a NcmlCollectionReader from its scan or scanFmrc element.- Parameters:
ncmlString- the NcML to construct the reader fromerrlog- put error messages here- Returns:
- the resulting NetcdfDataset
- Throws:
IOException- on read error, or bad referencedDatasetUri URI
-
readNcml
public static NcmlCollectionReader readNcml(String ncmlString, Formatter errlog) throws IOException
Read an NcML file from a String, and construct a NcmlCollectionReader from its scan or scanFmrc element.- Parameters:
ncmlString- the NcML to construct the reader fromerrlog- put error messages here- Returns:
- the resulting NetcdfDataset
- Throws:
IOException- on read error, or bad referencedDatasetUri URI
-
open
public static NcmlCollectionReader open(String ncmlLocation, Formatter errlog) throws IOException
Read an NcML file from a URL location, and construct a NcmlCollectionReader from its scan or scanFmrc element.- Parameters:
ncmlLocation- the URL location string of the NcML documenterrlog- put error messages here- Returns:
- the resulting NetcdfDataset
- Throws:
IOException- on read error, or bad referencedDatasetUri URI
-
getNcmlOuter
public org.jdom2.Element getNcmlOuter()
-
getNcmlInner
public org.jdom2.Element getNcmlInner()
-
getCollectionManager
public CollectionManager getCollectionManager()
-
-