tomp.xtcl.filter
Class TransformerFilterImpl

java.lang.Object
  extended bytomp.xtcl.filter.XTFilterImpl
      extended bytomp.xtcl.filter.XSLTFilter
          extended bytomp.xtcl.filter.TransformerFilterImpl
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, HasOutputProperties, org.xml.sax.ext.LexicalHandler, Parametrized, org.xml.sax.XMLFilter, org.xml.sax.XMLReader, XTFilter

public class TransformerFilterImpl
extends XSLTFilter
implements HasOutputProperties


Field Summary
protected  javax.xml.transform.sax.TransformerHandler handler
           
protected  HasOutputProperties outputPropertiesListener
           
protected  javax.xml.transform.Transformer transformer
           
 
Fields inherited from class tomp.xtcl.filter.XSLTFilter
result
 
Fields inherited from class tomp.xtcl.filter.XTFilterImpl
contentHandler, dtdHandler, entityResolver, errorHandler, lexicalHandler, locator, parent
 
Constructor Summary
protected TransformerFilterImpl(javax.xml.transform.sax.TransformerHandler handler)
           
 
Method Summary
 void comment(char[] ch, int start, int length)
          Callback interface for SAX (part of LexicalHandler interface): not for application use
 void endCDATA()
           
 void endDTD()
          Register the end of the DTD.
 void endEntity(java.lang.String name)
           
 java.util.Properties getOutputProperties()
           
 javax.xml.transform.Transformer getTransformer()
           
 void setOutputProperties(java.util.Properties p)
           
 void setOutputPropertiesListener(HasOutputProperties l)
           
 void setParameter(java.lang.String k, java.lang.Object v)
           
 void startCDATA()
           
 void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
          Register the start of the DTD.
 void startEntity(java.lang.String name)
           
 
Methods inherited from class tomp.xtcl.filter.XSLTFilter
endDocument, endElement, endPrefixMapping, getResult, characters, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from class tomp.xtcl.filter.XTFilterImpl
error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getLexicalHandler, getParent, getProperty, notationDecl, parse, parse, resolveEntity, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setLexicalHandler, setParent, setProperty, setupParse, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transformer

protected javax.xml.transform.Transformer transformer

handler

protected javax.xml.transform.sax.TransformerHandler handler

outputPropertiesListener

protected HasOutputProperties outputPropertiesListener
Constructor Detail

TransformerFilterImpl

protected TransformerFilterImpl(javax.xml.transform.sax.TransformerHandler handler)
Method Detail

getTransformer

public javax.xml.transform.Transformer getTransformer()

getOutputProperties

public java.util.Properties getOutputProperties()
Specified by:
getOutputProperties in interface HasOutputProperties

setOutputProperties

public void setOutputProperties(java.util.Properties p)
Specified by:
setOutputProperties in interface HasOutputProperties

setOutputPropertiesListener

public void setOutputPropertiesListener(HasOutputProperties l)
Specified by:
setOutputPropertiesListener in interface HasOutputProperties

setParameter

public void setParameter(java.lang.String k,
                         java.lang.Object v)
Specified by:
setParameter in interface Parametrized
Overrides:
setParameter in class XTFilterImpl

comment

public void comment(char[] ch,
                    int start,
                    int length)
             throws org.xml.sax.SAXException
Callback interface for SAX (part of LexicalHandler interface): not for application use

Specified by:
comment in interface org.xml.sax.ext.LexicalHandler
Overrides:
comment in class XTFilterImpl
Throws:
org.xml.sax.SAXException

startDTD

public void startDTD(java.lang.String name,
                     java.lang.String publicId,
                     java.lang.String systemId)
              throws org.xml.sax.SAXException
Register the start of the DTD. Comments in the DTD are skipped because they are not part of the XPath data model

Specified by:
startDTD in interface org.xml.sax.ext.LexicalHandler
Overrides:
startDTD in class XTFilterImpl
Throws:
org.xml.sax.SAXException

endDTD

public void endDTD()
            throws org.xml.sax.SAXException
Register the end of the DTD. Comments in the DTD are skipped because they are not part of the XPath data model

Specified by:
endDTD in interface org.xml.sax.ext.LexicalHandler
Overrides:
endDTD in class XTFilterImpl
Throws:
org.xml.sax.SAXException

startEntity

public void startEntity(java.lang.String name)
                 throws org.xml.sax.SAXException
Specified by:
startEntity in interface org.xml.sax.ext.LexicalHandler
Overrides:
startEntity in class XTFilterImpl
Throws:
org.xml.sax.SAXException

endEntity

public void endEntity(java.lang.String name)
               throws org.xml.sax.SAXException
Specified by:
endEntity in interface org.xml.sax.ext.LexicalHandler
Overrides:
endEntity in class XTFilterImpl
Throws:
org.xml.sax.SAXException

startCDATA

public void startCDATA()
                throws org.xml.sax.SAXException
Specified by:
startCDATA in interface org.xml.sax.ext.LexicalHandler
Overrides:
startCDATA in class XTFilterImpl
Throws:
org.xml.sax.SAXException

endCDATA

public void endCDATA()
              throws org.xml.sax.SAXException
Specified by:
endCDATA in interface org.xml.sax.ext.LexicalHandler
Overrides:
endCDATA in class XTFilterImpl
Throws:
org.xml.sax.SAXException