Class DualMarksAnnotationWriter<T>
Object
DualMarksAnnotationWriter<T>
- Type Parameters:
T
- rejection-reason
- All Implemented Interfaces:
AnnotationWriter<DualMarksAnnotation<T>>
public class DualMarksAnnotationWriter<T>
extends Object
implements AnnotationWriter<DualMarksAnnotation<T>>
Writes
DualMarksAnnotation
s to the file-system.
Different paths are used when the annotations are considered finished or unfinished.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionDualMarksAnnotationWriter
(boolean disablePathModification) Creates a newDualMarksAnnotationWriter
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(DualMarksAnnotation<T> annotation, Path path) Saves the annotation to the filesystem.
-
Constructor Details
-
DualMarksAnnotationWriter
public DualMarksAnnotationWriter() -
DualMarksAnnotationWriter
public DualMarksAnnotationWriter(boolean disablePathModification) Creates a newDualMarksAnnotationWriter
instance.- Parameters:
disablePathModification
- If true, always use file-paths as if they were finished.
-
-
Method Details
-
write
Description copied from interface:AnnotationWriter
Saves the annotation to the filesystem.- Specified by:
write
in interfaceAnnotationWriter<T>
- Parameters:
annotation
- the annotation to save.path
- the path to write to (or a slightly-modified path is derived from this).- Throws:
IOException
- if the annotation fails to write successfully.
-