processing.xml
Class StdXMLParser

java.lang.Object
  extended by processing.xml.StdXMLParser

public class StdXMLParser
extends java.lang.Object

StdXMLParser is the core parser of NanoXML.


Constructor Summary
StdXMLParser()
          Creates a new parser.
 
Method Summary
 StdXMLBuilder getBuilder()
          Returns the builder which creates the logical structure of the XML data.
 StdXMLReader getReader()
          Returns the reader from which the parser retrieves its data.
 XMLEntityResolver getResolver()
          Returns the entity resolver.
 XMLValidator getValidator()
          Returns the validator that validates the XML data.
 java.lang.Object parse()
          Parses the data and lets the builder create the logical data structure.
 void setBuilder(StdXMLBuilder builder)
          Sets the builder which creates the logical structure of the XML data.
 void setReader(StdXMLReader reader)
          Sets the reader from which the parser retrieves its data.
 void setResolver(XMLEntityResolver resolver)
          Sets the entity resolver.
 void setValidator(XMLValidator validator)
          Sets the validator that validates the XML data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdXMLParser

public StdXMLParser()
Creates a new parser.

Method Detail

setBuilder

public void setBuilder(StdXMLBuilder builder)
Sets the builder which creates the logical structure of the XML data.

Parameters:
builder - the non-null builder

getBuilder

public StdXMLBuilder getBuilder()
Returns the builder which creates the logical structure of the XML data.

Returns:
the builder

setValidator

public void setValidator(XMLValidator validator)
Sets the validator that validates the XML data.

Parameters:
validator - the non-null validator

getValidator

public XMLValidator getValidator()
Returns the validator that validates the XML data.

Returns:
the validator

setResolver

public void setResolver(XMLEntityResolver resolver)
Sets the entity resolver.

Parameters:
resolver - the non-null resolver

getResolver

public XMLEntityResolver getResolver()
Returns the entity resolver.

Returns:
the non-null resolver

setReader

public void setReader(StdXMLReader reader)
Sets the reader from which the parser retrieves its data.

Parameters:
reader - the reader

getReader

public StdXMLReader getReader()
Returns the reader from which the parser retrieves its data.

Returns:
the reader

parse

public java.lang.Object parse()
                       throws XMLException
Parses the data and lets the builder create the logical data structure.

Returns:
the logical structure built by the builder
Throws:
net.n3.nanoxml.XMLException - if an error occurred reading or parsing the data
XMLException