net.sf.joost.trax
Class TrAXHelper
java.lang.Object
net.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.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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
TrAXHelper
protected TrAXHelper()
- Defaultconstructor
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 sourceerrorListener - an ErrorListener object
- Returns:
- a
SAXSource
- Throws:
TransformerException