Interface IDocumentHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void handleDocumentEnd​(long endTimeNanos, long totalTimeNanos, int line, int col)
      Called at the end of document parsing.
      void handleDocumentStart​(long startTimeNanos, int line, int col)
      Called at the beginning of document parsing.
    • Method Detail

      • handleDocumentStart

        void handleDocumentStart​(long startTimeNanos,
                                 int line,
                                 int col)
                          throws ParseException

        Called at the beginning of document parsing.

        Parameters:
        startTimeNanos - the current time (in nanoseconds) obtained when parsing starts.
        line - the line of the document where parsing starts (usually number 1).
        col - the column of the document where parsing starts (usually number 1).
        Throws:
        ParseException - if any exceptions occur during handling.
      • handleDocumentEnd

        void handleDocumentEnd​(long endTimeNanos,
                               long totalTimeNanos,
                               int line,
                               int col)
                        throws ParseException

        Called at the end of document parsing.

        Parameters:
        endTimeNanos - the current time (in nanoseconds) obtained when parsing ends.
        totalTimeNanos - the difference between current times at the start and end of parsing (in nanoseconds).
        line - the line of the document where parsing ends (usually the last one).
        col - the column of the document where the parsing ends (usually the last one).
        Throws:
        ParseException - if any exceptions occur during handling.