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 aFileor anOutputStream.- Author:
- Damien Carbonne
- See Also:
IssuesFormat
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIssuesReader.SettingsClass used to configure loading of issues.
-
Field Summary
Fields Modifier and Type Field Description static IssuesReader.SettingsANSWERSSettings used to load answers with issues.static IssuesReader.SettingsNO_ANSWERSSettings used to ignore answers.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description IssuesAndAnswersload(IssuesReader.Settings settings, cdc.util.events.ProgressController controller)Loads issues and associated answers (if asked in settings).static IssuesAndAnswersload(File file, IssuesReader.Settings settings, cdc.util.events.ProgressController controller, IssuesIoFactoryFeatures features)Loads issues and answers from a file.
-
-
-
Field Detail
-
ANSWERS
static final IssuesReader.Settings ANSWERS
Settings used to load answers with issues.
-
NO_ANSWERS
static final IssuesReader.Settings NO_ANSWERS
Settings used to ignore answers.
-
-
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.
-
-