Class DualMarksAnnotationWriter<T>
Object
org.anchoranalysis.annotation.io.mark.DualMarksAnnotationWriter<T>
- Type Parameters:
T- rejection-reason
- All Implemented Interfaces:
AnnotationWriter<DualMarksAnnotation<T>>
public class DualMarksAnnotationWriter<T> extends Object implements AnnotationWriter<DualMarksAnnotation<T>>
Writes
DualMarksAnnotations to the file-system.
Different paths are used when the annotations are considered finished or unfinished.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description DualMarksAnnotationWriter()DualMarksAnnotationWriter(boolean disablePathModification) -
Method Summary
Modifier and Type Method Description voidwrite(DualMarksAnnotation<T> annotation, Path path)Saves the annotation to the filesystem.
-
Constructor Details
-
DualMarksAnnotationWriter
public DualMarksAnnotationWriter() -
DualMarksAnnotationWriter
public DualMarksAnnotationWriter(boolean disablePathModification)
-
-
Method Details
-
write
Description copied from interface:AnnotationWriterSaves the annotation to the filesystem.- Specified by:
writein 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.
-