|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.joost.trax.TemplatesImpl
public class TemplatesImpl
This class implements the Templates-Interface for TraX. Templates are thread-safe, so create one templates and call newTransformer() to get a new Transformer-Object.
Field Summary | |
---|---|
protected TransformerFactoryImpl |
factory
Holding a reference on a TransformerFactoryImpl
should be visible for TrAXFilter |
private static org.apache.commons.logging.Log |
log
|
private Processor |
processor
Holding a reference on the Joost-STX-Processor Processor |
private Object |
reentryGuard
Synch object to guard against setting values from the TrAX interface or reentry while the transform is going on. |
Fields inherited from interface net.sf.joost.trax.TrAXConstants |
---|
ALLOW_EXTERNAL_FUNCTIONS, DEBUG_FEATURE, IDENTITY_TRANSFORM, KEY_OUTPUT_URI_RESOLVER, KEY_TH_RESOLVER, KEY_XSLT_FACTORY, MESSAGE_EMITTER_CLASS, OUTPUT_KEY_SUPPORT_DISABLE_OUTPUT_ESCAPING |
Fields inherited from interface net.sf.joost.Constants |
---|
DEBUG, DEFAULT_ENCODING, FEAT_NS, FEAT_NSPREFIX, FEATURE_URI_PREFIX, FUNC_NS, JOOST_EXT_NS, PR_ATTRIBUTES, PR_BUFFER, PR_CHILDREN, PR_CONTINUE, PR_ERROR, PR_SELF, PR_SIBLINGS, STX_NS |
Constructor Summary | |
---|---|
protected |
TemplatesImpl(Parser stxParser,
TransformerFactoryImpl factory)
Constructor used by TemplatesHandlerImpl |
protected |
TemplatesImpl(XMLReader reader,
InputSource isource,
TransformerFactoryImpl factory)
Constructor. |
Method Summary | |
---|---|
Properties |
getOutputProperties()
Gets the static properties for stx:output. |
private void |
init(Parser stxParser)
Configures the Templates - initializing with a completed
Parser object. |
private void |
init(XMLReader reader,
InputSource isource)
Configures the Templates - initializing by parsing the
stylesheet. |
Transformer |
newTransformer()
Method returns a Transformer-instance for transformation-process |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.commons.logging.Log log
protected TransformerFactoryImpl factory
TransformerFactoryImpl
should be visible for TrAXFilter
private Processor processor
Processor
private Object reentryGuard
Constructor Detail |
---|
protected TemplatesImpl(Parser stxParser, TransformerFactoryImpl factory) throws TransformerConfigurationException
TemplatesHandlerImpl
stxParser
- A parsed stylesheet in form of Parser
TransformerConfigurationException
protected TemplatesImpl(XMLReader reader, InputSource isource, TransformerFactoryImpl factory) throws TransformerConfigurationException
reader
- The XMLReader
for parsing the stylesheetisource
- The InputSource
of the stylesheetfactory
- A reference on a TransformerFactoryImpl
TransformerConfigurationException
- When an error occurs.Method Detail |
---|
private void init(Parser stxParser) throws TransformerConfigurationException
Templates
- initializing with a completed
Parser
object.
stxParser
- A Parser
TransformerConfigurationException
- When an error occurs while
initializing the Templates
.private void init(XMLReader reader, InputSource isource) throws TransformerConfigurationException
Templates
- initializing by parsing the
stylesheet.
reader
- The XMLReader
for parsing the stylesheetisource
- The InputSource
of the stylesheet
TransformerConfigurationException
- When an error occurs while
initializing the Templates
.public Transformer newTransformer() throws TransformerConfigurationException
newTransformer
in interface Templates
Transformer
object.
TransformerConfigurationException
public Properties getOutputProperties()
getOutputProperties
in interface Templates
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |