Class NdmParser

    • Method Detail

      • reset

        public void reset​(FileFormat fileFormat)
        Reset parser to initial state before parsing.
        Parameters:
        fileFormat - format of the file ready to be parsed
      • build

        public Ndm build()
        Build the file from parsed entries.
        Returns:
        parsed file
      • addComment

        public boolean addComment​(String comment)
        Add comment.

        Comments are accepted only at start. Once other content is stored in the same section, comments are refused.

        Parameters:
        comment - comment line
        Returns:
        true if comment was accepted