gov.nasa.worldwind.applications.gio.csw
Class SAXResponseParser
java.lang.Object
gov.nasa.worldwind.applications.gio.csw.SAXResponseParser
- All Implemented Interfaces:
- ResponseParser
- Direct Known Subclasses:
- GetRecordsDocumentParser, GetServices.ResponseParser, GetServices.ResponseParser
public class SAXResponseParser
- extends java.lang.Object
- implements ResponseParser
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAXResponseParser
public SAXResponseParser()
SAXResponseParser
public SAXResponseParser(ElementParser documentElement)
doEndDocument
protected void doEndDocument(java.lang.String name)
throws java.lang.Exception
- Throws:
java.lang.Exception
doParseResponse
protected void doParseResponse(javax.xml.parsers.SAXParser parser,
java.io.InputStream is)
throws java.lang.Exception
- Throws:
java.lang.Exception
doStartDocument
protected void doStartDocument(java.lang.String name,
org.xml.sax.Attributes attributes)
throws java.lang.Exception
- Throws:
java.lang.Exception
endDocument
public void endDocument(java.lang.String name)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDocumentElement
public ElementParser getDocumentElement()
getExceptionReport
public ExceptionReport getExceptionReport()
hasExceptions
public boolean hasExceptions()
newSAXParser
protected static javax.xml.parsers.SAXParser newSAXParser()
throws java.lang.Exception
- Throws:
java.lang.Exception
parseResponse
public void parseResponse(java.io.InputStream is)
throws java.lang.Exception
- Specified by:
parseResponse in interface ResponseParser
- Throws:
java.lang.Exception
setDocumentElement
public void setDocumentElement(ElementParser documentElement)
startDocument
public void startDocument(java.lang.String name,
org.xml.sax.Attributes attributes)
throws java.lang.Exception
- Throws:
java.lang.Exception