net.sf.statcvs.input
Class CvsRevisionParser

java.lang.Object
  extended bynet.sf.statcvs.input.CvsRevisionParser

public class CvsRevisionParser
extends java.lang.Object

Parses all revisions of one file.

Version:
$Id: CvsRevisionParser.java,v 1.24 2003/03/26 21:05:35 cyganiak Exp $
Author:
Anja Jentzsch, Richard Cyganiak

Field Summary
static java.lang.String FILE_DELIMITER
          File Delimiter in CVS log file
static java.lang.String REVISION_DELIMITER
          Revision Delimiter in CVS log file
 
Constructor Summary
CvsRevisionParser(java.util.List tagNames, java.util.List tagRevisions)
          Default Constructor CvsRevisionParser.
 
Method Summary
 java.util.List getRevisions()
          Method getRevisions.
 boolean isDone()
          Method isDone.
 void messageLine(java.lang.String line, int lineNumber)
          Parses one line of the logfile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION_DELIMITER

public static final java.lang.String REVISION_DELIMITER
Revision Delimiter in CVS log file

See Also:
Constant Field Values

FILE_DELIMITER

public static final java.lang.String FILE_DELIMITER
File Delimiter in CVS log file

See Also:
Constant Field Values
Constructor Detail

CvsRevisionParser

public CvsRevisionParser(java.util.List tagNames,
                         java.util.List tagRevisions)
Default Constructor CvsRevisionParser.

Parameters:
tagNames - list of tag names; type: String
tagRevisions - list of tag revisions; type String
Method Detail

messageLine

public void messageLine(java.lang.String line,
                        int lineNumber)
                 throws LogSyntaxException
Parses one line of the logfile. Sets isDone() to true if it was the last line of this file's section of the log.

Parameters:
line - the line from the log
lineNumber - the number of the line, starting at 1.
Throws:
LogSyntaxException - if the line does not parse

isDone

public boolean isDone()
Method isDone.

Returns:
boolean if done

getRevisions

public java.util.List getRevisions()
Method getRevisions.

Returns:
List of revisions; type: CvsRevision