NASA World Wind

gov.nasa.worldwind.applications.gio.csw
Class SAXResponseParser

java.lang.Object
  extended by gov.nasa.worldwind.applications.gio.csw.SAXResponseParser
All Implemented Interfaces:
ResponseParser
Direct Known Subclasses:
GetRecordsDocumentParser, GetServices.ResponseParser, GetServices.ResponseParser

public class SAXResponseParser
extends Object
implements ResponseParser


Nested Class Summary
protected static class SAXResponseParser.Handler
           
 
Constructor Summary
SAXResponseParser()
           
SAXResponseParser(ElementParser documentElement)
           
 
Method Summary
protected  void doEndDocument(String name)
           
protected  void doParseResponse(SAXParser parser, InputStream is)
           
protected  void doStartDocument(String name, Attributes attributes)
           
 void endDocument(String name)
           
 ElementParser getDocumentElement()
           
 ExceptionReport getExceptionReport()
           
 boolean hasExceptions()
           
protected static SAXParser newSAXParser()
           
 void parseResponse(InputStream is)
           
 void setDocumentElement(ElementParser documentElement)
           
 void startDocument(String name, Attributes attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXResponseParser

public SAXResponseParser()

SAXResponseParser

public SAXResponseParser(ElementParser documentElement)
Method Detail

doEndDocument

protected void doEndDocument(String name)
                      throws Exception
Throws:
Exception

doParseResponse

protected void doParseResponse(SAXParser parser,
                               InputStream is)
                        throws Exception
Throws:
Exception

doStartDocument

protected void doStartDocument(String name,
                               Attributes attributes)
                        throws Exception
Throws:
Exception

endDocument

public void endDocument(String name)
                 throws Exception
Throws:
Exception

getDocumentElement

public ElementParser getDocumentElement()

getExceptionReport

public ExceptionReport getExceptionReport()

hasExceptions

public boolean hasExceptions()

newSAXParser

protected static SAXParser newSAXParser()
                                 throws Exception
Throws:
Exception

parseResponse

public void parseResponse(InputStream is)
                   throws Exception
Specified by:
parseResponse in interface ResponseParser
Throws:
Exception

setDocumentElement

public void setDocumentElement(ElementParser documentElement)

startDocument

public void startDocument(String name,
                          Attributes attributes)
                   throws Exception
Throws:
Exception

NASA World Wind