Package Summary  Overview Summary

class:SAXResult [NONE]

  • All Implemented Interfaces:

    public class SAXResult
    extends Object
    implements Result

    Acts as an holder for a transformation Result.



constructor:<init>() [NONE]

  • SAXResult

    public SAXResult()
    Zero-argument default constructor.

constructor:<init>(org.xml.sax.ContentHandler) [NONE]

  • SAXResult

    public SAXResult​(ContentHandler handler)
    Create a SAXResult that targets a SAX2 ContentHandler.
    handler - Must be a non-null ContentHandler reference.

method:setHandler(org.xml.sax.ContentHandler) [NONE]

  • setHandler

    public void setHandler​(ContentHandler handler)
    Set the target to be a SAX2 ContentHandler.
    handler - Must be a non-null ContentHandler reference.

method:getHandler() [NONE]

  • getHandler

    public ContentHandler getHandler()
    Get the ContentHandler that is the Result.
    The ContentHandler that is to be transformation output.

method:setLexicalHandler(org.xml.sax.ext.LexicalHandler) [NONE]

  • setLexicalHandler

    public void setLexicalHandler​(LexicalHandler handler)
    Set the SAX2 LexicalHandler for the output.

    This is needed to handle XML comments and the like. If the lexical handler is not set, an attempt should be made by the transformer to cast the ContentHandler to a LexicalHandler.

    handler - A non-null LexicalHandler for handling lexical parse events.

method:getLexicalHandler() [NONE]

  • getLexicalHandler

    public LexicalHandler getLexicalHandler()
    Get a SAX2 LexicalHandler for the output.
    A LexicalHandler, or null.

method:setSystemId(java.lang.String) [NONE]

  • setSystemId

    public void setSystemId​(String systemId)
    Method setSystemId Set the systemID that may be used in association with the ContentHandler.
    Specified by:
    setSystemId in interface Result
    systemId - The system identifier as a URI string.

method:getSystemId() [NONE]

  • getSystemId

    public String getSystemId()
    Get the system identifier that was set with setSystemId.
    Specified by:
    getSystemId in interface Result
    The system identifier that was set with setSystemId, or null if setSystemId was not called.

© 2019 Oracle Corporation and/or its affiliates