Interface ProcessorChain

All Known Subinterfaces:
InputProcessorChain, OutputProcessorChain
All Known Implementing Classes:
InputProcessorChainImpl, OutputProcessorChainImpl

public interface ProcessorChain
Basic interface for Output- and Input-Processor chains
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Will finally be called when the whole document is processed Important note: Every processor in the chain has to call doFinal() in its own doFinal() method.
    void
    resets the chain so that the next event will go again to the first processor in the chain.
  • Method Details

    • reset

      void reset()
      resets the chain so that the next event will go again to the first processor in the chain.
    • doFinal

      Will finally be called when the whole document is processed Important note: Every processor in the chain has to call doFinal() in its own doFinal() method. InputProcessors should call it before doing other stuff to keep the processing order. Remember the input-chain is in principle processed in the reverse order since we "leech" the events through the chain. So that means that we should do the same for the doFinal method, otherwise we may run into troubles.
      Throws:
      XMLStreamException - thrown when a streaming error occurs
      XMLSecurityException - thrown when a Security failure occurs