Documentation of 'net.n3.nanoxml.StdXMLParser' Java class
StdXMLParser
net.n3.nanoxml

Class StdXMLParser

  • All Implemented Interfaces:
    IXMLParser


    public class StdXMLParser
    extends java.lang.Object
    implements IXMLParser
    StdXMLParser is the core parser of NanoXML.
    • Constructor Detail

      • StdXMLParser

        public StdXMLParser()
        Creates a new parser.
    • Method Detail

      • setBuilder

        public void setBuilder(IXMLBuilder builder)
        Sets the builder which creates the logical structure of the XML data.
        Specified by:
        setBuilder in interface IXMLParser
        Parameters:
        builder - the non-null builder
      • getBuilder

        public IXMLBuilder getBuilder()
        Returns the builder which creates the logical structure of the XML data.
        Specified by:
        getBuilder in interface IXMLParser
        Returns:
        the builder
      • setValidator

        public void setValidator(IXMLValidator validator)
        Sets the validator that validates the XML data.
        Specified by:
        setValidator in interface IXMLParser
        Parameters:
        validator - the non-null validator
      • getValidator

        public IXMLValidator getValidator()
        Returns the validator that validates the XML data.
        Specified by:
        getValidator in interface IXMLParser
        Returns:
        the validator
      • setReader

        public void setReader(IXMLReader reader)
        Sets the reader from which the parser retrieves its data.
        Specified by:
        setReader in interface IXMLParser
        Parameters:
        reader - the reader
      • getReader

        public IXMLReader getReader()
        Returns the reader from which the parser retrieves its data.
        Specified by:
        getReader in interface IXMLParser
        Returns:
        the reader
      • parse

        public java.lang.Object parse()
                               throws XMLException
        Parses the data and lets the builder create the logical data structure.
        Specified by:
        parse in interface IXMLParser
        Returns:
        the logical structure built by the builder
        Throws:
        XMLException - if an error occurred reading or parsing the data
        See Also:
        IXMLBuilder.getResult()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.