jd.xml.xslt.trax
Class TransformerHandlerImpl
java.lang.Object
jd.xml.xpath.model.parse.ParseHandler
jd.xml.xpath.model.parse.SaxParseHandler
jd.xml.xpath.model.parse.Sax2ParseHandler
jd.xml.xslt.trax.TransformerHandlerImpl
- All Implemented Interfaces:
- ContentHandler, DTDHandler, LexicalHandler, ModelLocator, TransformerHandler
- class TransformerHandlerImpl
- extends Sax2ParseHandler
- implements TransformerHandler
An implementation of javax.xml.transform.sax.TransformerHandler
Method Summary |
void |
endDocument()
Receive notification of the end of a document. |
String |
getSystemId()
Get the base ID (URI or system ID) from where relative
URLs will be resolved. |
Transformer |
getTransformer()
Get the Transformer associated with this handler, which
is needed in order to set parameters and output properties. |
void |
setResult(Result result)
Enables the user of the TransformerHandler to set the
to set the Result for the transformation. |
void |
setSystemId(String systemId)
Set the base ID (URI or system ID) from where relative
URLs will be resolved. |
void |
startDocument()
Receive notification of the beginning of a document. |
Methods inherited from class jd.xml.xpath.model.parse.Sax2ParseHandler |
comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, getEntityResolver, getParser, isValidating, parse, processingInstruction, setEntityResolver, setValidating, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformerHandlerImpl
public TransformerHandlerImpl(TransformerImpl transformer)
startDocument
public void startDocument()
throws SAXException
- Description copied from interface:
ContentHandler
- Receive notification of the beginning of a document.
The SAX parser will invoke this method only once, before any
other methods in this interface or in DTDHandler
(except for setDocumentLocator
).
- Specified by:
startDocument
in interface ContentHandler
- Overrides:
startDocument
in class SaxParseHandler
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Description copied from interface:
ContentHandler
- Receive notification of the end of a document.
The SAX parser will invoke this method only once, and it will
be the last method invoked during the parse. The parser shall
not invoke this method until it has either abandoned parsing
(because of an unrecoverable error) or reached the end of
input.
- Specified by:
endDocument
in interface ContentHandler
- Overrides:
endDocument
in class SaxParseHandler
- Throws:
SAXException
setSystemId
public void setSystemId(String systemId)
- Description copied from interface:
TransformerHandler
- Set the base ID (URI or system ID) from where relative
URLs will be resolved.
- Specified by:
setSystemId
in interface TransformerHandler
- Parameters:
systemId
- Base URI for the source tree.
getSystemId
public String getSystemId()
- Description copied from interface:
TransformerHandler
- Get the base ID (URI or system ID) from where relative
URLs will be resolved.
- Specified by:
getSystemId
in interface TransformerHandler
- Returns:
- The systemID that was set with
TransformerHandler.setSystemId(java.lang.String)
.
getTransformer
public Transformer getTransformer()
- Description copied from interface:
TransformerHandler
- Get the Transformer associated with this handler, which
is needed in order to set parameters and output properties.
- Specified by:
getTransformer
in interface TransformerHandler
setResult
public void setResult(Result result)
- Description copied from interface:
TransformerHandler
- Enables the user of the TransformerHandler to set the
to set the Result for the transformation.
- Specified by:
setResult
in interface TransformerHandler
- Parameters:
result
- A Result instance, should not be null.