Package adams.core.io.filechanged
Class MessageDigest
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,FileChangeMonitor,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,Serializable
public class MessageDigest extends AbstractMessageDigestBasedMonitor
Generates a message digest and uses that for comparison.- 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 MessageDigest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcomputeDigest(File file, MessageCollection errors)Generates the message digest, if possible.StringglobalInfo()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:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin 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:
computeDigestin classAbstractMessageDigestBasedMonitor- Parameters:
file- the file to generate the digest forerrors- for collecting any errors- Returns:
- the digest
-
-