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 -
Method Summary
Modifier and TypeMethodDescriptionImageFileFormatfileFormat(StackWriteOptions writeOptions) protected abstract StackWriterselectDelegate(StackWriteOptions writeOptions) Selects aStackWriterto use as a delegate.voidwriteStack(Stack stack, Path filePath, StackWriteOptions options) Methods inherited from class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
fileFormatWarnUnexpected, writeStackWithExtensionMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
StackWriterDelegateBase
public StackWriterDelegateBase()
-
-
Method Details
-
fileFormat
public ImageFileFormat fileFormat(StackWriteOptions writeOptions) throws ImageIOException - Specified by:
fileFormatin classStackWriter- Throws:
ImageIOException
-
writeStack
public void writeStack(Stack stack, Path filePath, StackWriteOptions options) throws ImageIOException - Specified by:
writeStackin classStackWriter- Throws:
ImageIOException
-
selectDelegate
protected abstract StackWriter selectDelegate(StackWriteOptions writeOptions) throws ImageIOException Selects aStackWriterto use as a delegate.- Parameters:
writeOptions- options that specify what kind of rasters will be written.- Returns:
- the selected
StackWriter - Throws:
ImageIOException
-