Package org.codice.alliance.libs.klv
Class TrimmingPostProcessor
java.lang.Object
org.codice.alliance.libs.klv.TrimmingPostProcessor
- All Implemented Interfaces:
PostProcessor
Trim all of the
Trimmable handlers. This is in case one of the values was not supplied by
the KLV data. For example the lat value was supplied, but the lon value was KlvDataElement.isErrorIndicated().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpostProcess(Map<String, org.codice.ddf.libs.klv.KlvDataElement> dataElements, Map<String, KlvHandler> handlers) A typical implementation would search dataElements for specific instances, calculate a new value, and then call the KlvHandler in handlers that corresponds to the new data.
-
Constructor Details
-
TrimmingPostProcessor
public TrimmingPostProcessor()
-
-
Method Details
-
postProcess
public void postProcess(Map<String, org.codice.ddf.libs.klv.KlvDataElement> dataElements, Map<String, KlvHandler> handlers) Description copied from interface:PostProcessorA typical implementation would search dataElements for specific instances, calculate a new value, and then call the KlvHandler in handlers that corresponds to the new data.- Specified by:
postProcessin interfacePostProcessor- Parameters:
dataElements- map of klv data element names to klv data elements that were retrieved from the current klv metadata packethandlers- map of klv data element names to the handlers that process the klv data elements
-