de.grogra.pf.io
Class XSLTFilter

java.lang.Object
  extended by de.grogra.pf.io.FilterBase
      extended by de.grogra.pf.io.SAXFilterBase
          extended by de.grogra.pf.io.XSLTFilter
All Implemented Interfaces:
Filter, FilterSource, OutputStreamSource, SAXSource, RegistryContext, Map, org.xml.sax.XMLReader

public class XSLTFilter
extends SAXFilterBase
implements OutputStreamSource


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.grogra.pf.io.FilterSource
FilterSource.MetaDataKey<V>
 
Nested classes/interfaces inherited from interface de.grogra.util.Map
Map.Chain
 
Field Summary
 
Fields inherited from class de.grogra.pf.io.SAXFilterBase
LEX_HANDLER
 
Fields inherited from class de.grogra.pf.io.FilterBase
item, source
 
Fields inherited from interface de.grogra.pf.io.FilterSource
AUTO_PROGRESS, DESTINATION_FILE, DESTINATION_URL
 
Fields inherited from interface de.grogra.pf.io.SAXSource
NAMESPACE_PREFIXES, NAMESPACES
 
Fields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP
 
Constructor Summary
XSLTFilter(FilterItem item, FilterSource source, javax.xml.transform.Templates xslt, IOFlavor targetFlavor)
           
 
Method Summary
 boolean getFeature(java.lang.String name)
           
 void parse(org.xml.sax.ContentHandler ch, org.xml.sax.ErrorHandler eh, org.xml.sax.ext.LexicalHandler lh, org.xml.sax.DTDHandler dh, org.xml.sax.EntityResolver er)
           
 void setFeature(java.lang.String name, boolean value)
           
 void write(java.io.OutputStream out)
          This method writes the data to out.
 
Methods inherited from class de.grogra.pf.io.SAXFilterBase
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getProperty, parse, parse, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setProperty
 
Methods inherited from class de.grogra.pf.io.FilterBase
get, getFilter, getFlavor, getImpl, getMetaData, getRegistry, getSource, getSystemId, initProgressMonitor, setFlavor, setMetaData, setMetaData, setProgress, setSystemId, toString, toURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.grogra.pf.io.FilterSource
getFilter, getFlavor, getMetaData, getSystemId, initProgressMonitor, setMetaData, setProgress
 
Methods inherited from interface de.grogra.pf.registry.RegistryContext
getRegistry
 

Constructor Detail

XSLTFilter

public XSLTFilter(FilterItem item,
                  FilterSource source,
                  javax.xml.transform.Templates xslt,
                  IOFlavor targetFlavor)
Method Detail

getFeature

public boolean getFeature(java.lang.String name)
                   throws org.xml.sax.SAXNotRecognizedException,
                          org.xml.sax.SAXNotSupportedException
Specified by:
getFeature in interface SAXSource
Specified by:
getFeature in interface org.xml.sax.XMLReader
Overrides:
getFeature in class SAXFilterBase
Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException

parse

public void parse(org.xml.sax.ContentHandler ch,
                  org.xml.sax.ErrorHandler eh,
                  org.xml.sax.ext.LexicalHandler lh,
                  org.xml.sax.DTDHandler dh,
                  org.xml.sax.EntityResolver er)
           throws java.io.IOException,
                  org.xml.sax.SAXException
Specified by:
parse in interface SAXSource
Throws:
java.io.IOException
org.xml.sax.SAXException

setFeature

public void setFeature(java.lang.String name,
                       boolean value)
                throws org.xml.sax.SAXNotRecognizedException,
                       org.xml.sax.SAXNotSupportedException
Specified by:
setFeature in interface SAXSource
Specified by:
setFeature in interface org.xml.sax.XMLReader
Overrides:
setFeature in class SAXFilterBase
Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
Description copied from interface: OutputStreamSource
This method writes the data to out.

Specified by:
write in interface OutputStreamSource
Parameters:
out - the stream to which data is written
Throws:
java.io.IOException