public class MetcastClientMain extends DefaultHandler
Contact: Don Brutzman (web.nps.navy.mil/~brutzman) brutzman@nps.navy.mil
Bathymetry
,
EnvironmentalData
,
MetcastTestClient
,
ModelOutputFormatter
,
SceneGenerator
,
SeawaterTemp
,
SignificantWaveHeight
,
SonarSource
,
SonarTarget
,
SoundSpeed
,
Windspeed
Constructor and Description |
---|
MetcastClientMain()
Creates a new instance of SAXParser
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buf,
int offset,
int len)
Receive notification of character data inside an element.
|
void |
endDocument()
Creates the flush debugging output of the end of the document.
|
void |
endElement(String namespaceURI,
String sName,
String qName)
Create the end of an element.
|
EnvironmentalData |
parseDocument(double lat,
double lon,
double size)
Parse the MetcastTest.xml file and instantiate EnvironmentalData class to provide default handlers.
|
void |
processData()
Processing data of EnvironmentalData object.
|
void |
startDocument()
Creates the output header of the beginning of the document.
|
void |
startElement(String namespaceURI,
String sName,
String qName,
Attributes attrs)
Create the start of an element.
|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
- The error or warning message.public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
- The error or warning message.public void startElement(String namespaceURI, String sName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
namespaceURI
- The Url of name space.sName
- The element tag name.qName
- The element tag name.attrs
- The attribute name.SAXException
- The error or warning message.public void endElement(String namespaceURI, String sName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
namespaceURI
- The Url of name space.sName
- The element tag name.qName
- The element tag name.SAXException
- The error or warning message.public void characters(char[] buf, int offset, int len) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
buf
- The characters.offset
- The start position in the character array.len
- The number of characters to use from the character array.SAXException
- The error or warning message.public void processData()
public EnvironmentalData parseDocument(double lat, double lon, double size)
lat
- The latitude of metcast request.lon
- The longitude of metcast request.size
- The size of area requested.