Class OutputterFixture

Object
org.anchoranalysis.test.image.io.OutputterFixture

public class OutputterFixture
extends Object
Utility class for creating Outputter instances for testing purposes.
  • Method Summary

    Modifier and Type Method Description
    static org.anchoranalysis.io.output.outputter.Outputter outputter​(Optional<Path> pathTempDirectory)
    Creates an Outputter instance with optionally a path to a temporary directory for outtputting files.
    static org.anchoranalysis.io.output.outputter.Outputter outputter​(org.anchoranalysis.io.output.bean.OutputManager outputManager, org.anchoranalysis.io.output.bean.rules.OutputEnabledRules outputsEnabled)
    Creates an Outputter instance with a specified OutputManager and OutputEnabledRules.
    static org.anchoranalysis.io.output.outputter.OutputterChecked outputterChecked​(Optional<Path> pathTempDirectory)
    Creates an OutputterChecked instance with optionally a path to a temporary directory for outputting files.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • outputter

      public static org.anchoranalysis.io.output.outputter.Outputter outputter​(Optional<Path> pathTempDirectory) throws org.anchoranalysis.io.output.outputter.BindFailedException
      Creates an Outputter instance with optionally a path to a temporary directory for outtputting files.
      Parameters:
      pathTempDirectory - Optional path to a temporary directory. When undefined, an incrementing number will be used for outtputting files.
      Returns:
      A new Outputter instance.
      Throws:
      org.anchoranalysis.io.output.outputter.BindFailedException - If binding the outputter fails.
    • outputter

      public static org.anchoranalysis.io.output.outputter.Outputter outputter​(org.anchoranalysis.io.output.bean.OutputManager outputManager, org.anchoranalysis.io.output.bean.rules.OutputEnabledRules outputsEnabled) throws org.anchoranalysis.io.output.outputter.BindFailedException
      Creates an Outputter instance with a specified OutputManager and OutputEnabledRules.
      Parameters:
      outputManager - The OutputManager to use.
      outputsEnabled - The OutputEnabledRules to apply.
      Returns:
      A new Outputter instance.
      Throws:
      org.anchoranalysis.io.output.outputter.BindFailedException - If binding the outputter fails.
    • outputterChecked

      public static org.anchoranalysis.io.output.outputter.OutputterChecked outputterChecked​(Optional<Path> pathTempDirectory) throws org.anchoranalysis.io.output.outputter.BindFailedException
      Creates an OutputterChecked instance with optionally a path to a temporary directory for outputting files.
      Parameters:
      pathTempDirectory - optional path to a temporary directory. When undefined, an incrementing number will be used for outtputting files.
      Returns:
      A new OutputterChecked instance.
      Throws:
      org.anchoranalysis.io.output.outputter.BindFailedException - If binding the outputter fails.