Package cdc.issues.io

Interface IssuesStreamWriter

    • Method Detail

      • startDocument

        void startDocument()
                    throws IOException
        Must be invoked first.
        Throws:
        IOException - When an IO error occurs.
      • add

        void add​(SnapshotData snapshot)
          throws IOException
        Invoked to generate snapshot data.
        Parameters:
        snapshot - The snapshot data.
        Throws:
        IOException - When an IO error occurs.
      • add

        void add​(Issue issue,
                 IssueAnswer answer)
          throws IOException
        Invoked to generate issue and answer data.
        Parameters:
        issue - The issue.
        answer - The associated answer.
        Throws:
        IOException - When an IO error occurs.
      • add

        default void add​(Issue issue)
                  throws IOException
        Invoked to generate issue data.
        Parameters:
        issue - The issue.
        Throws:
        IOException - When an IO error occurs.
      • endDocument

        void endDocument()
                  throws IOException
        Must be invoked last.
        Throws:
        IOException - When an IO error occurs.