Interface AnnotationWriter<T extends Annotation>

Type Parameters:
T - annotation-type.
All Known Implementing Classes:
DualMarksAnnotationWriter, ImageLabelAnnotationWriter

public interface AnnotationWriter<T extends Annotation>
Allows an annotation to be written to the file-system.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(T annotation, Path path)
    Saves the annotation to the filesystem.
  • Method Details

    • write

      void write(T annotation, Path path) throws IOException
      Saves the annotation to the filesystem.
      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.