public class BranchSuggestedFormat extends StackWriterDelegateBase
This is useful for mapping a suggested file format by user to the underlying StackWriter
that should write it.
Constructor and Description |
---|
BranchSuggestedFormat() |
Modifier and Type | Method and Description |
---|---|
StackWriter |
getWriterIfNoSuggestion()
The writer to use if there is no suggested file-format.
|
List<StackWriter> |
getWritersIfSuggested()
A list of writers to select if a given format is used
|
protected StackWriter |
selectDelegate(StackWriteOptions writeOptions)
Selects a
StackWriter to use as a delegate. |
void |
setWriterIfNoSuggestion(StackWriter writerIfNoSuggestion)
The writer to use if there is no suggested file-format.
|
void |
setWritersIfSuggested(List<StackWriter> writersIfSuggested)
A list of writers to select if a given format is used
|
fileFormat, writeStack
fileFormatWarnUnexpected, writeStackWithExtension
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected StackWriter selectDelegate(StackWriteOptions writeOptions) throws ImageIOException
StackWriterDelegateBase
StackWriter
to use as a delegate.selectDelegate
in class StackWriterDelegateBase
writeOptions
- options that specify what kind of rasters will be written.StackWriter
ImageIOException
public List<StackWriter> getWritersIfSuggested()
The name of the format should be the default extension (without a leading period) of the corresponding format. Case is irrelevant.
public void setWritersIfSuggested(List<StackWriter> writersIfSuggested)
The name of the format should be the default extension (without a leading period) of the corresponding format. Case is irrelevant.
public StackWriter getWriterIfNoSuggestion()
public void setWriterIfNoSuggestion(StackWriter writerIfNoSuggestion)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.