Class GeneratorOutputter
Object
org.anchoranalysis.image.io.stack.output.generator.GeneratorOutputter
public class GeneratorOutputter extends Object
Settings and methods for writing to the filesystem from a generator.
- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description static StringfileExtensionWriter(OutputWriteSettings settings, StackWriteOptions writeOptions, Optional<Logger> logger)The file extension to use for the defaultStackWriter, as returned bywriter(OutputWriteSettings).static StackWriterwriter(OutputWriteSettings settings)Gets the defaultStackWriter.
-
Method Details
-
writer
Gets the defaultStackWriter.- Parameters:
settings- the settings that influence how outputs are written.- Returns:
- the default
StackWriter. - Throws:
ImageIOException- if a default writer doesn't exist.
-
fileExtensionWriter
public static String fileExtensionWriter(OutputWriteSettings settings, StackWriteOptions writeOptions, Optional<Logger> logger) throws ImageIOExceptionThe file extension to use for the defaultStackWriter, as returned bywriter(OutputWriteSettings).- Parameters:
settings- the parameters that influence how outputs are written, in general.writeOptions- parameters that influence howStacks are written.logger- a logger, to write informative messages or non-fatal errors to.- Returns:
- the file extension (without a leading period) to be used by the default writer.
- Throws:
ImageIOException- if a default writer doesn't exist.
-