|
SORTIE Java Interface
1
|
An object of this class will parse detailed output timestep files and pass the data to a DetailedOutputFileManager object. More...
Public Member Functions | |
| DetailedOutputTimestepParseHandler (DetailedOutputFileManager oData) | |
| Constructor. | |
| void | startElement (java.lang.String sURI, java.lang.String sLocalName, java.lang.String sQName, Attributes oAttributes) throws SAXException |
| Called when the parser hits a new opening tag. | |
| void | endElement (java.lang.String sURI, java.lang.String sLocalName, java.lang.String sQName) throws SAXException |
| Feeds accumulated character data. | |
| void | characters (char[] ch, int start, int length) throws SAXException |
| Reads character data from the XML file and appends it to the buffer. | |
Private Attributes | |
| DetailedOutputFileManager | m_oData |
| Parent detailed output file manager. | |
| StringBuffer | m_sBuf |
| String buffer for collecting character data. | |
| String | m_sDataMemberLabel |
| Data member label. | |
| int | m_iSpecies |
| Tree species. | |
| boolean | m_bIsGridXCellLength |
| Indicates the data just parsed is the X length of grid cells. | |
An object of this class will parse detailed output timestep files and pass the data to a DetailedOutputFileManager object.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Cary Institute of Ecosystem Studies
Edit history:
---------------—
April 28, 2004: Submitted in beta version (LEM)
March 21, 2005: Fixed bug so we can differentiate between package and non-package grid data members (LEM)
March 20, 2006: Added grid package data parsing (LEM)
March 3, 2011: Added support for dead trees (LEM)
| sortie.datavisualizer.DetailedOutputTimestepParseHandler.DetailedOutputTimestepParseHandler | ( | DetailedOutputFileManager | oData | ) |
Constructor.
| oData | Parent detailed output file manager. |
| void sortie.datavisualizer.DetailedOutputTimestepParseHandler.characters | ( | char[] | ch, |
| int | start, | ||
| int | length | ||
| ) | throws SAXException |
Reads character data from the XML file and appends it to the buffer.
The parser can call this multiple times per tag.
| ch | The characters from the XML document. |
| start | - The start position in the array. |
| length | - The number of characters to read from the array. |
| SAXException | if any of the described cases above is true. |
| void sortie.datavisualizer.DetailedOutputTimestepParseHandler.endElement | ( | java.lang.String | sURI, |
| java.lang.String | sLocalName, | ||
| java.lang.String | sQName | ||
| ) | throws SAXException |
Feeds accumulated character data.
Whether or not the data is ignored, and what is done with it if it is not ignored, depends on flags that have been set.
| sURI | the Namespace URI (ignored) |
| sLocalName | the local name (what this function looks at) |
| sQName | the qualified (prefixed) name (ignored) |
| SAXException | if there are any problems. |
| void sortie.datavisualizer.DetailedOutputTimestepParseHandler.startElement | ( | java.lang.String | sURI, |
| java.lang.String | sLocalName, | ||
| java.lang.String | sQName, | ||
| Attributes | oAttributes | ||
| ) | throws SAXException |
Called when the parser hits a new opening tag.
This is overridden from the base class. This function is interested in the following tags:
Tree settings information:
Tree data:
Grid settings information:
Grid data:
| sURI | the Namespace URI (ignored) |
| sLocalName | the local name (what this function looks at) |
| sQName | the qualified (prefixed) name (ignored) |
| oAttributes | The tag's oAttributes |
| SAXException | if there are any problems. |
|
private |
Indicates the data just parsed is the X length of grid cells.
|
private |
Tree species.
|
private |
Parent detailed output file manager.
|
private |
String buffer for collecting character data.
|
private |
Data member label.
1.8.2