Klasse HashValueFromFileProcessor

java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.processors.HashValueFromFileProcessor

public class HashValueFromFileProcessor extends FWProcessor
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
  • Konstruktordetails

    • HashValueFromFileProcessor

      public HashValueFromFileProcessor()
  • Methodendetails

    • process

      protected boolean process() throws PipeLineException
      Runs the processor
      Angegeben von:
      process in Klasse FWProcessor
      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:
      checkInParameterMap in Klasse FWProcessor
      Gibt zurück:
      true if not overridden by implementations
    • getHexRepresentation

      protected String getHexRepresentation(byte[] aDigestValue)
      Parameter:
      aDigestValue -
      Gibt zurück:
      the hex representation (as String) of the given byte array