net.sf.statcvs.input
Class CvsFileBlockParser

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

public class CvsFileBlockParser
extends java.lang.Object

Takes a CVS logfile and reads the block of one file from it.

Version:
$Id: CvsFileBlockParser.java,v 1.27 2003/03/22 13:57:12 cyganiak Exp $
Author:
Anja Jentzsch, Richard Cyganiak

Constructor Summary
CvsFileBlockParser(java.io.LineNumberReader logReader, RepositoryFileManager repositoryFileManager)
          Default Constructor CvsFileBlockParser.
 
Method Summary
 CvsFile getParsedFile()
          Returns a CvsFile from the parsed input, or null if the CVS file does not qualify for inclusion in our analysis (for example, if it has no revisions on the current branch).
 boolean isDone()
          Returns true if the parser encountered an EOF at the end of the current file block while doing getParsedFile().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CvsFileBlockParser

public CvsFileBlockParser(java.io.LineNumberReader logReader,
                          RepositoryFileManager repositoryFileManager)
Default Constructor CvsFileBlockParser.

Parameters:
logReader - reader
repositoryFileManager - file manager
Method Detail

getParsedFile

public CvsFile getParsedFile()
                      throws LogSyntaxException,
                             java.io.IOException
Returns a CvsFile from the parsed input, or null if the CVS file does not qualify for inclusion in our analysis (for example, if it has no revisions on the current branch).

Returns:
CvsFile output
Throws:
LogSyntaxException - on syntax error
java.io.IOException - on read/write error

isDone

public boolean isDone()
Returns true if the parser encountered an EOF at the end of the current file block while doing getParsedFile().

Returns:
true if the parser encountered an EOF