Package net.simplace.pipe.processors
Klasse HashValueFromFileProcessor
java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.processors.HashValueFromFileProcessor
This processor computes the MD5 hash value of a given file and puts it into the pipeline.
Parameters:
- filename
- A complete or relative path to the file to be hashed. This parameter is mandatory!
- resultParamKey
- Key of the parameter that is put into the pipeline. This parameter is optional. The default is "hashValue".
- Autor:
- ckunze
-
Feldübersicht
Von Klasse geerbte Felder net.simplace.pipe.control.FWProcessor
iAllreadyLoopedCount, iContainer, iInObservable, iObservable, iProgressTasks -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected booleanEnsures that all required parameters contain a value.protected StringgetHexRepresentation(byte[] aDigestValue) protected booleanprocess()Runs the processorVon Klasse geerbte Methoden net.simplace.pipe.control.FWProcessor
checkOutParameterMap, clone, containsParameter, createProcessor, createProcessor, fireTaskEvent, getAllStringInParameters, getConfiguration, getInitialParameters, getInParameter, getInParameter, getInParameters, getNewProgressTask, getOutParameter, getOutParameterKeys, getPipeLine, getProgressTask, getStringInParameter, getStringInParameter, getSystemID, hasConfiguration, isEndOfPipe, pipe, removeOutParameter, setConfiguration, setEndOfPipeFlag, setInitialParameters, setInParameterMap, setLoopedCount, setOutParameter, setStateOfTask, setStateProgressing, toXML
-
Konstruktordetails
-
HashValueFromFileProcessor
public HashValueFromFileProcessor()
-
-
Methodendetails
-
process
Runs the processor- Angegeben von:
processin KlasseFWProcessor- Gibt zurück:
- success
- Löst aus:
PipeLineException
-
checkInParameterMap
protected boolean checkInParameterMap()Ensures that all required parameters contain a value. If the value actually makes sense is checked when the processor is actually executed.- Setzt außer Kraft:
checkInParameterMapin KlasseFWProcessor- Gibt zurück:
- true if not overridden by implementations
-
getHexRepresentation
- Parameter:
aDigestValue-- Gibt zurück:
- the hex representation (as String) of the given byte array
-