org.apache.xml.security.stax.impl.processor.output
Class FinalOutputProcessor

java.lang.Object
  extended by org.apache.xml.security.stax.ext.AbstractOutputProcessor
      extended by org.apache.xml.security.stax.impl.processor.output.FinalOutputProcessor
All Implemented Interfaces:
OutputProcessor

public class FinalOutputProcessor
extends AbstractOutputProcessor

Processor which outputs the XMLEvents to an outputStream This Processor can be extended to allow to write to a StAX writer instead of directly to an output stream

Version:
$Revision: 1398806 $ $Date: 2012-10-16 15:01:40 +0100 (Tue, 16 Oct 2012) $
Author:
$Author: giger $

Field Summary
 
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, securityProperties
 
Constructor Summary
FinalOutputProcessor(OutputStream outputStream, String encoding)
           
FinalOutputProcessor(XMLStreamWriter xmlStreamWriter)
           
 
Method Summary
 void doFinal(OutputProcessorChain outputProcessorChain)
          Will be called when the whole document is processed.
 void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain)
           
 
Methods inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
addAfterProcessor, addAttributes, addBeforeProcessor, createAttribute, createCharacters, createCharacters, createCharactersAndOutputAsEvent, createCharactersAndOutputAsEvent, createEndElement, createEndElementAndOutputAsEvent, createNamespace, createStartElementAndOutputAsEvent, createStartElementAndOutputAsEvent, getAction, getAfterProcessors, getBeforeProcessors, getPhase, getSecurityProperties, init, outputAsEvent, outputDOMElement, processNextEvent, securePartMatches, securePartMatches, setAction, setPhase, setXMLSecurityProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinalOutputProcessor

public FinalOutputProcessor(OutputStream outputStream,
                            String encoding)
                     throws XMLSecurityException
Throws:
XMLSecurityException

FinalOutputProcessor

public FinalOutputProcessor(XMLStreamWriter xmlStreamWriter)
                     throws XMLSecurityException
Throws:
XMLSecurityException
Method Detail

processEvent

public void processEvent(XMLSecEvent xmlSecEvent,
                         OutputProcessorChain outputProcessorChain)
                  throws XMLStreamException,
                         XMLSecurityException
Specified by:
processEvent in class AbstractOutputProcessor
Throws:
XMLStreamException
XMLSecurityException

doFinal

public void doFinal(OutputProcessorChain outputProcessorChain)
             throws XMLSecurityException
Description copied from interface: OutputProcessor
Will be called when the whole document is processed.

Specified by:
doFinal in interface OutputProcessor
Overrides:
doFinal in class AbstractOutputProcessor
Throws:
XMLSecurityException - thrown when a Security failure occurs


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.