INRIA & FluxMedia

fr.fluxmedia.tmcontrib.generator
Class CVSLogXMLReader

java.lang.Object
  extended by fr.fluxmedia.tmcontrib.generator.AbstractXMLReader
      extended by fr.fluxmedia.tmcontrib.generator.CVSLogXMLReader
All Implemented Interfaces:
org.xml.sax.XMLReader

public class CVSLogXMLReader
extends AbstractXMLReader

This class allows to parse a cvs log file.

Author:
triolet

Field Summary
private static org.xml.sax.Attributes EMPTY_ATTR
           
 
Constructor Summary
CVSLogXMLReader()
          Constructor for the CVSLogXMLReader object
 
Method Summary
 void parse(org.xml.sax.InputSource input)
          Parses the input source
 void parseHeader(java.io.BufferedReader br, org.xml.sax.ContentHandler ch)
          Parses the header of the cvs log file
 void parseHeaderLine(java.lang.String curLine, org.xml.sax.helpers.AttributesImpl attrs)
          Parses properties separated by ; in the header part of the log file
 void parseRevision(java.io.BufferedReader br, org.xml.sax.ContentHandler ch)
          Parses the revision part of the cvs log file
 void parseRevisionLine(java.lang.String curLine, org.xml.sax.helpers.AttributesImpl attrs)
          Parses properties separated by ; in the revision part of the log file
 void parseSymbolicNames(java.io.BufferedReader br, java.util.Hashtable symbolicNames)
          Description of the Method
 
Methods inherited from class fr.fluxmedia.tmcontrib.generator.AbstractXMLReader
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ATTR

private static final org.xml.sax.Attributes EMPTY_ATTR
Constructor Detail

CVSLogXMLReader

public CVSLogXMLReader()
Constructor for the CVSLogXMLReader object

Method Detail

parse

public void parse(org.xml.sax.InputSource input)
           throws java.io.IOException,
                  org.xml.sax.SAXException
Parses the input source

Specified by:
parse in interface org.xml.sax.XMLReader
Specified by:
parse in class AbstractXMLReader
Parameters:
input - input source to parse
Throws:
java.io.IOException - Description of the Exception
org.xml.sax.SAXException - Description of the Exception

parseHeader

public void parseHeader(java.io.BufferedReader br,
                        org.xml.sax.ContentHandler ch)
                 throws java.io.IOException,
                        org.xml.sax.SAXException
Parses the header of the cvs log file

Parameters:
br - the buffered reader
ch - the content handler which receives SAX events
Throws:
java.io.IOException - Description of the Exception
org.xml.sax.SAXException - Description of the Exception

parseRevision

public void parseRevision(java.io.BufferedReader br,
                          org.xml.sax.ContentHandler ch)
                   throws java.io.IOException,
                          org.xml.sax.SAXException
Parses the revision part of the cvs log file

Parameters:
br - the buffered reader
ch - the content handler which receives SAX events
Throws:
java.io.IOException - Description of the Exception
org.xml.sax.SAXException - Description of the Exception

parseRevisionLine

public void parseRevisionLine(java.lang.String curLine,
                              org.xml.sax.helpers.AttributesImpl attrs)
Parses properties separated by ; in the revision part of the log file

Parameters:
curLine - the string to parse
attrs - the attributes

parseHeaderLine

public void parseHeaderLine(java.lang.String curLine,
                            org.xml.sax.helpers.AttributesImpl attrs)
Parses properties separated by ; in the header part of the log file

Parameters:
curLine - the line to parse
attrs - the attributes

parseSymbolicNames

public void parseSymbolicNames(java.io.BufferedReader br,
                               java.util.Hashtable symbolicNames)
                        throws java.io.IOException,
                               org.xml.sax.SAXException
Description of the Method

Parameters:
br - Description of the Parameter
symbolicNames - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception
org.xml.sax.SAXException - Description of the Exception

INRIA & FluxMedia

..no bottom yet...