org.milyn.delivery.sax
Class SmooksSAXFilter

java.lang.Object
  extended by org.milyn.delivery.Filter
      extended by org.milyn.delivery.sax.SmooksSAXFilter

public class SmooksSAXFilter
extends Filter

Smooks SAX Filter.

Author:
tom.fennelly@gmail.com

Nested Class Summary
 
Nested classes/interfaces inherited from class org.milyn.delivery.Filter
Filter.StreamFilterType
 
Field Summary
 
Fields inherited from class org.milyn.delivery.Filter
CLOSE_RESULT, CLOSE_SOURCE, DEFAULT_SERIALIZATION_ON, REVERSE_VISIT_ORDER_ON_VISIT_AFTER, STREAM_FILTER_TYPE, TERMINATE_ON_VISITOR_EXCEPTION
 
Constructor Summary
SmooksSAXFilter(ExecutionContext executionContext)
           
 
Method Summary
 void cleanup()
          Cleanup the Filter.
 void doFilter(Source source, Result result)
          Filter the content in the supplied Source instance, outputing the result to the supplied Result instance.
 
Methods inherited from class org.milyn.delivery.Filter
close, close, getCurrentExecutionContext, getFilter, getReader, getWriter, removeCurrentExecutionContext, removeCurrentFilter, setCurrentExecutionContext, setFilter, setFilterType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmooksSAXFilter

public SmooksSAXFilter(ExecutionContext executionContext)
Method Detail

doFilter

public void doFilter(Source source,
                     Result result)
              throws SmooksException
Description copied from class: Filter
Filter the content in the supplied Source instance, outputing the result to the supplied Result instance.

Specified by:
doFilter in class Filter
Parameters:
source - The content Source.
result - The content Result. To serialize the result, supply a StreamResult. To have the result returned as a DOM, supply a DOMResult.
Throws:
SmooksException - Failed to filter.

cleanup

public void cleanup()
Description copied from class: Filter
Cleanup the Filter.

Specified by:
cleanup in class Filter


Copyright © 2008. All Rights Reserved.