Class IdMLParser

    • Constructor Detail

      • IdMLParser

        public IdMLParser()
        Default constructor.
    • Method Detail

      • initInput

        public void initInput()
                       throws java.lang.Exception
        Initializes the Input. Note: this parser relies on a Reader object to read the XML document.
        Overrides:
        initInput in class XMLParser2
        Throws:
        java.lang.Exception - - in case of a read error occurs.
        See Also:
        ParserImpl.setInputStream(java.io.Reader)
      • readEntry

        public Entry readEntry()
                        throws java.lang.Exception
        Reads the data from the IdML book and returns it, one artifact at a time (i.e. CI or Relationship). Also, each returned entry contains the data of the MSS owning that artifact.
        Specified by:
        readEntry in interface ParserInterface
        Overrides:
        readEntry in class XMLParser2
        Returns:
        the Entry object containing the IdML elements.
        Throws:
        java.lang.Exception - if unable to parse an IdML file.
      • closeParser

        public void closeParser()
                         throws java.lang.Exception
        This method closes the parser's streams
        Specified by:
        closeParser in interface ParserInterface
        Overrides:
        closeParser in class XMLParser2
        Throws:
        java.lang.Exception - in case an error occurs