Interface PostProcessor

All Known Implementing Classes:
ListPostProcessor, OffsetCenterPostProcessor, TrimmingPostProcessor

public interface PostProcessor
The PostProcessor is called after each klv metadata packet is processed. The primary purpose is to inject new metadata that is calculated from other metadata fields in the same klv metadata packet.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    postProcess(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.
  • Method Details

    • postProcess

      void postProcess(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.
      Parameters:
      dataElements - map of klv data element names to klv data elements that were retrieved from the current klv metadata packet
      handlers - map of klv data element names to the handlers that process the klv data elements