net.sf.joost.trax
Class TrAXHelper

java.lang.Object
  extended bynet.sf.joost.trax.TrAXHelper
All Implemented Interfaces:
Constants, TrAXConstants

public class TrAXHelper
extends Object
implements TrAXConstants

This class provides TrAX

Author:
Zubow

Field Summary
private static org.apache.commons.logging.Log log
           
 
Fields inherited from interface net.sf.joost.trax.TrAXConstants
ALLOW_EXTERNAL_FUNCTIONS, DEBUG_FEATURE, IDENTITY_TRANSFORM, KEY_TH_RESOLVER, KEY_XSLT_FACTORY, MESSAGE_EMITTER_CLASS
 
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 TrAXHelper()
          Defaultconstructor
 
Method Summary
protected static InputSource getInputSourceForStreamSources(Source source, ErrorListener errorListener)
          Helpermethod for getting an InputSource from a StreamSource.
static SAXSource getSAXSource(Source source, ErrorListener errorListener)
          Converts a supplied Source to a SAXSource.
static StxEmitter initStxEmitter(Result result, Processor processor)
          HelperMethod for initiating StxEmitter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Constructor Detail

TrAXHelper

protected TrAXHelper()
Defaultconstructor

Method Detail

getInputSourceForStreamSources

protected static InputSource getInputSourceForStreamSources(Source source,
                                                            ErrorListener errorListener)
                                                     throws TransformerConfigurationException
Helpermethod for getting an InputSource from a StreamSource.

Parameters:
source - Source
Returns:
An InputSource object or null
Throws:
TransformerConfigurationException

initStxEmitter

public static StxEmitter initStxEmitter(Result result,
                                        Processor processor)
                                 throws TransformerException
HelperMethod for initiating StxEmitter.

Parameters:
result - A Result object.
Returns:
An StxEmitter.
Throws:
TransformerException

getSAXSource

public static SAXSource getSAXSource(Source source,
                                     ErrorListener errorListener)
                              throws TransformerException
Converts a supplied Source to a SAXSource.

Parameters:
source - The supplied input source
errorListener - an ErrorListener object
Returns:
a SAXSource
Throws:
TransformerException