public class OpenLSResponseParser extends DefaultHandler
Constructor and Description |
---|
OpenLSResponseParser()
Instantiates a new open ls response parser.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
GeocodeResponse |
getGeocodeResponse()
Gets the geocode response.
|
GeocodeResponse |
parseOpenLSResponse(String data)
Parses the open ls response.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public OpenLSResponseParser()
public GeocodeResponse parseOpenLSResponse(String data)
data
- the data which is an OpenLS response xml documentpublic void startElement(String uri, String localName, String qName, Attributes attributes)
startElement
in interface ContentHandler
startElement
in class DefaultHandler
public void endElement(String uri, String localName, String qName)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
public GeocodeResponse getGeocodeResponse()
Copyright © 2010–2020 team GEOZET. All rights reserved.