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, warningpublic void startDocument()
                   throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXException - The error or warning message.public void endDocument()
                 throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException - The error or warning message.public void startElement(String namespaceURI, String sName, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlernamespaceURI - 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 ContentHandlerendElement in class DefaultHandlernamespaceURI - 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 ContentHandlercharacters in class DefaultHandlerbuf - 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.