Package cdc.issues.io

Interface IssuesReader

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IssuesReader
    Interface implemented by classes that can read Issues and Answers from a File or an OutputStream.
    Author:
    Damien Carbonne
    See Also:
    IssuesFormat
    • Method Detail

      • load

        IssuesAndAnswers load​(IssuesReader.Settings settings,
                              cdc.util.events.ProgressController controller)
                       throws IOException
        Loads issues and associated answers (if asked in settings).
        Parameters:
        settings - The settings.
        controller - The progress controller.
        Returns:
        The loaded issues and answers.
        Throws:
        IOException - When an IO error occurs.
      • load

        static IssuesAndAnswers load​(File file,
                                     IssuesReader.Settings settings,
                                     cdc.util.events.ProgressController controller,
                                     IssuesIoFactoryFeatures features)
                              throws IOException
        Loads issues and answers from a file.
        Parameters:
        file - The file.
        settings - The settings.
        controller - The progress controller.
        features - The features used to configure the factory.
        Returns:
        The loaded issues and answers.
        Throws:
        IOException - When an IO error occurs.