com.lowagie.tools

Class CvsLogParser

public class CvsLogParser extends Object implements Enumeration

If you get a changelog from CVS, for instance: cvs -d:ext:blowagie@itext.cvs.sourceforge.net:/cvsroot/itext log -d ">2005-07-29" you get an overview that contains all the changes. With this class, you can parse out the important entries.

Author: blowagie

Field Summary
protected booleanchanges
indicates if the current token contains changes.
protected booleanmore
indicates if the tokenizer has more tokens.
protected StreamTokenizerst
the tokenizer object.
Constructor Summary
CvsLogParser(String file)
Method Summary
booleanhasChanged()
Indicates if the current token is one that contains changes.
booleanhasMoreElements()
static voidmain(String[] args)
Parses a log form CVS.
ObjectnextElement()
Returns the next token in the log file.

Field Detail

changes

protected boolean changes
indicates if the current token contains changes.

more

protected boolean more
indicates if the tokenizer has more tokens.

st

protected StreamTokenizer st
the tokenizer object.

Constructor Detail

CvsLogParser

public CvsLogParser(String file)

Parameters: file

Throws: FileNotFoundException

Method Detail

hasChanged

private boolean hasChanged()
Indicates if the current token is one that contains changes.

Returns: true if the token is relevant

hasMoreElements

public boolean hasMoreElements()

See Also: java.util.Enumeration#hasMoreElements()

main

public static void main(String[] args)
Parses a log form CVS.

Parameters: args the path to the logfile

nextElement

public Object nextElement()
Returns the next token in the log file.

See Also: java.util.Enumeration#nextElement()