Package cdc.issues.io
Interface IssuesWriter
-
public interface IssuesWriterInterface implemented by classes that can save Issues, Answers, Project, Snapshot to a file.One must use
IssuesIoFactory.createIssuesWriter(File)to create an instance ofIssuesWriter.There are 2 modes of generation:
- Issues & Answers mode.
- Project, Profile & Snapshot mode.
- Author:
- Damien Carbonne
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIssuesWriter.SettingsClass used to configure writing of issues.
-
Field Summary
Fields Modifier and Type Field Description static IssuesWriter.SettingsALL_DATA_ANSWERSstatic IssuesWriter.SettingsALL_DATA_NO_ANSWERS
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsave(IssuesAndAnswers issuesAndAnswers, IssuesWriter.Settings settings, File file, cdc.util.events.ProgressController controller)Saves a list of issues and associated answers to a file.static voidsave(IssuesAndAnswers issuesAndAnswers, IssuesWriter.Settings settings, File file, cdc.util.events.ProgressController controller, IssuesIoFactoryFeatures features)Saves a list of issues and associated answers to a file.voidsave(Snapshot snapshot, IssuesWriter.Settings settings, File file, cdc.util.events.ProgressController controller)Saves a project and snapshot to a file.static voidsave(Snapshot snapshot, IssuesWriter.Settings settings, File file, cdc.util.events.ProgressController controller, IssuesIoFactoryFeatures features)Saves a project and snapshot to a file.voidsave(List<? extends Issue> issues, IssuesWriter.Settings settings, File file, cdc.util.events.ProgressController controller)Saves a list of issues to a file.static voidsave(List<? extends Issue> issues, IssuesWriter.Settings settings, File file, cdc.util.events.ProgressController controller, IssuesIoFactoryFeatures features)Saves a list of issues to a file.static voidsave(List<? extends Issue> issues, File file, cdc.util.events.ProgressController controller, IssuesIoFactoryFeatures features)Saves a list of issues to a file usingALL_DATA_NO_ANSWERSsettings.
-
-
-
Field Detail
-
ALL_DATA_ANSWERS
static final IssuesWriter.Settings ALL_DATA_ANSWERS
-
ALL_DATA_NO_ANSWERS
static final IssuesWriter.Settings ALL_DATA_NO_ANSWERS
-
-
Method Detail
-
save
void save(IssuesAndAnswers issuesAndAnswers, IssuesWriter.Settings settings, File file, cdc.util.events.ProgressController controller) throws IOException
Saves a list of issues and associated answers to a file.Issues & Answers mode.
- Parameters:
issuesAndAnswers- The issues and answers.settings- The settings.file- The file.controller- The progress controller.- Throws:
IOException- When an IO error occurs.
-
save
void save(List<? extends Issue> issues, IssuesWriter.Settings settings, File file, cdc.util.events.ProgressController controller) throws IOException
Saves a list of issues to a file.Issues & Answers mode.
- Parameters:
issues- The issues.settings- The settings.file- The file.controller- The progress controller.- Throws:
IOException- When an IO error occurs.
-
save
void save(Snapshot snapshot, IssuesWriter.Settings settings, File file, cdc.util.events.ProgressController controller) throws IOException
Saves a project and snapshot to a file.Project, Profile and Snapshot mode.
- Parameters:
snapshot- The snapshot.settings- The settings.file- The file.controller- The progress controller.- Throws:
IOException- When an IO error occurs.
-
save
static void save(IssuesAndAnswers issuesAndAnswers, IssuesWriter.Settings settings, File file, cdc.util.events.ProgressController controller, IssuesIoFactoryFeatures features) throws IOException
Saves a list of issues and associated answers to a file.Issues & Answers mode.
- Parameters:
issuesAndAnswers- The issues and answers.settings- The settings.file- The file.controller- The progress controller.features- The features used to configurefilegeneration.- Throws:
IOException- When an IO error occurs.
-
save
static void save(List<? extends Issue> issues, IssuesWriter.Settings settings, File file, cdc.util.events.ProgressController controller, IssuesIoFactoryFeatures features) throws IOException
Saves a list of issues to a file.Issues & Answers mode.
- Parameters:
issues- The issues.settings- The settings.file- The file.controller- The progress controller.features- The features used to configurefilegeneration.- Throws:
IOException- When an IO error occurs.
-
save
static void save(List<? extends Issue> issues, File file, cdc.util.events.ProgressController controller, IssuesIoFactoryFeatures features) throws IOException
Saves a list of issues to a file usingALL_DATA_NO_ANSWERSsettings.Issues & Answers mode.
- Parameters:
issues- The issues.file- The file.controller- The progress controller.features- The features used to configurefilegeneration.- Throws:
IOException- When an IO error occurs.
-
save
static void save(Snapshot snapshot, IssuesWriter.Settings settings, File file, cdc.util.events.ProgressController controller, IssuesIoFactoryFeatures features) throws IOException
Saves a project and snapshot to a file.Project, Profile and Snapshot mode.
- Parameters:
snapshot- The snapshot It should belong toproject.settings- The settings.file- The file.controller- The progress controller.features- The features used to configurefilegeneration.- Throws:
IOException- When an IO error occurs.
-
-