Class SVNXMLStatusHandler

  • All Implemented Interfaces:
    ISVNStatusHandler, org.xml.sax.Locator

    public class SVNXMLStatusHandler
    extends AbstractXMLHandler
    implements ISVNStatusHandler
    This is an implementation of the ISVNStatusHandler interface that writes XML formatted status information to a specified ContentHandler.
    Since:
    1.2
    Version:
    1.3
    • Constructor Detail

      • SVNXMLStatusHandler

        public SVNXMLStatusHandler​(org.xml.sax.ContentHandler saxHandler)
        Creates a new status handler.
        Parameters:
        saxHandler - a ContentHandler to form an XML tree
      • SVNXMLStatusHandler

        public SVNXMLStatusHandler​(org.xml.sax.ContentHandler saxHandler,
                                   ISVNDebugLog log)
        Creates a new status handler.
        Parameters:
        saxHandler - a ContentHandler to form an XML tree
        log - a debug logger
    • Method Detail

      • startTarget

        public void startTarget​(java.io.File path)
        Begins an XML tree with the target path for which the status is run.
        Parameters:
        path - a WC target path
      • endTarget

        public void endTarget​(long revision)
        Closes the formatted XML with the revision against which the status is run.
        Parameters:
        revision - a revision against which the status is run
      • sendToHandler

        private void sendToHandler​(SVNStatus status)
                            throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • getRelativePath

        protected java.lang.String getRelativePath​(java.io.File path)
      • getTargetPath

        protected java.lang.String getTargetPath()