public abstract class AbstractDcrawOperation extends AbstractImageOperation implements AtomicMoveSupporter
Modifier and Type | Field and Description |
---|---|
protected boolean |
m_AtomicMove
whether to perform an atomic move.
|
m_OptionManager
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
Constructor and Description |
---|
AbstractDcrawOperation() |
Modifier and Type | Method and Description |
---|---|
String |
atomicMoveTipText()
Returns the tip text for this property.
|
protected String |
check(PlaceholderFile input,
PlaceholderFile output)
Hook method for performing checks before applying the operation.
|
void |
defineOptions()
Adds options to the internal list of options.
|
boolean |
getAtomicMove()
Returns whether to attempt atomic move operation.
|
protected String |
move(PlaceholderFile input,
PlaceholderFile output)
Moves the temporary file to its final location.
|
void |
setAtomicMove(boolean value)
Sets whether to attempt atomic move operation.
|
apply, doApply, getQuickInfo
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLoggingLevel
public void defineOptions()
defineOptions
in interface OptionHandler
defineOptions
in class AbstractOptionHandler
public void setAtomicMove(boolean value)
setAtomicMove
in interface AtomicMoveSupporter
value
- if true then attempt atomic move operationpublic boolean getAtomicMove()
getAtomicMove
in interface AtomicMoveSupporter
public String atomicMoveTipText()
atomicMoveTipText
in interface AtomicMoveSupporter
protected String check(PlaceholderFile input, PlaceholderFile output)
check
in class AbstractImageOperation
input
- the input fileoutput
- the output fileprotected String move(PlaceholderFile input, PlaceholderFile output)
input
- the input file (used to determine tmp file name)output
- the output fileCopyright © 2021 University of Waikato, Hamilton, NZ. All Rights Reserved.