Class SvnInfoUtils.SvnInfoHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
net.sf.statsvn.util.SvnInfoUtils.SvnInfoHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
SvnKitInfo.SvnKitInfoHandler
Enclosing class:
SvnInfoUtils

protected static class SvnInfoUtils.SvnInfoHandler extends DefaultHandler
SAX parser for the svn info --xml command.
Version:
$Id: SvnInfoUtils.java 394 2009-08-10 20:08:46Z jkealey $
Author:
jkealey
  • Constructor Details

    • SvnInfoHandler

      public SvnInfoHandler(SvnInfoUtils infoUtils)
  • Method Details

    • getInfoUtils

      public SvnInfoUtils getInfoUtils()
    • characters

      public void characters(char[] ch, int start, int length) throws SAXException
      Builds the string that was read; default implementation can invoke this function multiple times while reading the data.
      Specified by:
      characters in interface ContentHandler
      Overrides:
      characters in class DefaultHandler
      Throws:
      SAXException
    • endElement

      public void endElement(String uri, String localName, String qName) throws SAXException
      End of xml element.
      Specified by:
      endElement in interface ContentHandler
      Overrides:
      endElement in class DefaultHandler
      Throws:
      SAXException
    • startElement

      public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
      Start of XML element.
      Specified by:
      startElement in interface ContentHandler
      Overrides:
      startElement in class DefaultHandler
      Throws:
      SAXException
    • isRootFolder

      protected boolean isRootFolder(Attributes attributes)
      Is this the root of the workspace?
      Parameters:
      attributes - the xml attributes
      Returns:
      true if is the root folder.
    • isValidCommit

      protected static boolean isValidCommit(Attributes attributes)
      Is this a valid commit? Check to see if wec an read the revision number.
      Parameters:
      attributes - the xml attributes
      Returns:
      true if is a valid commit.
    • isValidInfoEntry

      protected static boolean isValidInfoEntry(Attributes attributes)
      Is this a valid info entry? Check to see if we can read path, kind and revision.
      Parameters:
      attributes - the xml attributes.
      Returns:
      true if is a valid info entry.