public class TransformerHandlerImpl extends ReceivingContentHandler implements TransformerHandler
| Modifier and Type | Field and Description |
|---|---|
(package private) Builder |
builder |
(package private) Controller |
controller |
(package private) Receiver |
receiver |
(package private) Result |
result |
(package private) boolean |
started |
(package private) String |
systemId |
| Modifier | Constructor and Description |
|---|---|
protected |
TransformerHandlerImpl(Controller controller)
Create a TransformerHandlerImpl and initialise variables.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endDocument()
Override the behaviour of endDocument() in ReceivingContentHandler, so that it fires off
the transformation of the constructed document
|
Result |
getResult()
Get the output destination of the transformation
|
String |
getSystemId()
Get the systemId of the document
|
Transformer |
getTransformer()
Get the Transformer used for this transformation
|
void |
setResult(Result result)
Set the output destination of the transformation
|
void |
setSystemId(String url)
Set the SystemId of the document
|
void |
startDocument()
Start of a new document.
|
characters, comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, getColumnNumber, getConfiguration, getLineNumber, getLineNumber, getPipelineConfiguration, getPublicId, getSystemId, ignorableWhitespace, isIgnoringIgnorableWhitespace, notationDecl, processingInstruction, reset, setDocumentLocator, setIgnoreIgnorableWhitespace, setPipelineConfiguration, setReceiver, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMapping, unparsedEntityDeclclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMappingcomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntitynotationDecl, unparsedEntityDeclController controller
Builder builder
Receiver receiver
Result result
String systemId
boolean started
protected TransformerHandlerImpl(Controller controller)
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class ReceivingContentHandlerSAXException - only if an overriding subclass throws this exceptionUnsupportedOperationException - if an attempt is made to reuse the TransformerHandler by calling
startDocument() more than once.public Transformer getTransformer()
getTransformer in interface TransformerHandlerpublic void setSystemId(String url)
setSystemId in interface TransformerHandlerpublic String getSystemId()
getSystemId in interface TransformerHandlergetSystemId in interface SourceLocatorgetSystemId in interface LocatorgetSystemId in class ReceivingContentHandlerpublic void setResult(Result result)
setResult in interface TransformerHandlerpublic Result getResult()
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class ReceivingContentHandlerSAXException