Class SrxAnyParser

  • All Implemented Interfaces:
    SrxParser

    public class SrxAnyParser
    extends java.lang.Object
    implements SrxParser
    Represents any version intelligent SRX document parser. Responsible for creating appropriate SRX parser to given SRX document version.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private SrxParser parser  
    • Constructor Summary

      Constructors 
      Constructor Description
      SrxAnyParser()
      Creates SRX any parser using default SRX 2.0 parser.
      SrxAnyParser​(SrxParser parser)
      Creates SRX any parser using given SRX 2.0 parser.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SrxDocument parse​(java.io.Reader reader)
      Parses SRX document from reader.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SrxAnyParser

        public SrxAnyParser​(SrxParser parser)
        Creates SRX any parser using given SRX 2.0 parser.
        Parameters:
        parser -
      • SrxAnyParser

        public SrxAnyParser()
        Creates SRX any parser using default SRX 2.0 parser.
    • Method Detail

      • parse

        public SrxDocument parse​(java.io.Reader reader)
        Parses SRX document from reader. Selects appropriate SRX parser for document version.
        Specified by:
        parse in interface SrxParser
        Parameters:
        reader -
        Returns:
        Return initialized document