Package adams.core.io.filechanged
Class FlowFileDigest
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,FileChangeMonitor
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,Serializable
public class FlowFileDigest extends AbstractMessageDigestBasedMonitor
Generates a message digest for a flow file and uses that for comparison. Skips the comments at the start.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.core.io.filechanged.AbstractMessageDigestBasedMonitor
m_Digest, m_Type
-
Fields inherited from class adams.core.io.filechanged.AbstractFileChangeMonitor
m_File, m_Initialized
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description FlowFileDigest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
computeDigest(File file, MessageCollection errors)
Generates the message digest, if possible.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.core.io.filechanged.AbstractMessageDigestBasedMonitor
checkChange, defineOptions, doInitialize, doUpdate, getQuickInfo, getType, reset, setType, typeTipText
-
Methods inherited from class adams.core.io.filechanged.AbstractFileChangeMonitor
checkFile, getMonitoredFile, hasChanged, initialize, isInitialized, update
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
computeDigest
protected String computeDigest(File file, MessageCollection errors)
Generates the message digest, if possible.- Specified by:
computeDigest
in classAbstractMessageDigestBasedMonitor
- Parameters:
file
- the file to generate the digest forerrors
- for collecting any errors- Returns:
- the digest
-
-