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.
Interface implemented by classes that can read Issues and Answers
from a
File or an OutputStream.- Author:
- Damien Carbonne
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classClass used to configure loading of issues. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IssuesReader.SettingsSettings used to load answers with issues.static final IssuesReader.SettingsSettings used to ignore answers. -
Method Summary
Modifier and TypeMethodDescriptionload(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 Details
-
ANSWERS
Settings used to load answers with issues. -
NO_ANSWERS
Settings used to ignore answers.
-
-
Method Details
-
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.
-