Class StackWriterDelegateBase

Object
AnchorBean<StackWriter>
StackWriter
StackWriterDelegateBase
Direct Known Subclasses:
BranchChannels, BranchStack, BranchSuggestedFormat

public abstract class StackWriterDelegateBase extends StackWriter
A base class for a StackWriter delegates to another StackWriter based on values of a StackWriteAttributes.
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ImageFileFormat
    fileFormat(StackWriteOptions writeOptions)
     
    protected abstract StackWriter
    selectDelegate(StackWriteOptions writeOptions)
    Selects a StackWriter to use as a delegate.
    void
    writeStack(Stack stack, Path filePath, StackWriteOptions options)
     

    Methods inherited from class org.anchoranalysis.image.io.bean.stack.writer.StackWriter

    fileFormatWarnUnexpected, writeStackWithExtension

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • StackWriterDelegateBase

      public StackWriterDelegateBase()
  • Method Details

    • fileFormat

      public ImageFileFormat fileFormat(StackWriteOptions writeOptions) throws ImageIOException
      Specified by:
      fileFormat in class StackWriter
      Throws:
      ImageIOException
    • writeStack

      public void writeStack(Stack stack, Path filePath, StackWriteOptions options) throws ImageIOException
      Specified by:
      writeStack in class StackWriter
      Throws:
      ImageIOException
    • selectDelegate

      protected abstract StackWriter selectDelegate(StackWriteOptions writeOptions) throws ImageIOException
      Selects a StackWriter to use as a delegate.
      Parameters:
      writeOptions - options that specify what kind of rasters will be written.
      Returns:
      the selected StackWriter
      Throws:
      ImageIOException