net.sf.statcvs.input
Class RepositoryFileManager
public class RepositoryFileManager
Manages a checked-out repository and provides access to
line number counts for repository files.
$Id: RepositoryFileManager.java,v 1.26 2008/04/02 11:22:15 benoitx Exp $- Manuel Schulze
- Steffen Pingel
int | getLinesOfCode(String filename) - Returns the lines of code for a repository file.
|
String | getRevision(String filename) - Returns the revision of filename in the local working directory by
reading the CVS/Entries file.
|
RepositoryFileManager
public RepositoryFileManager(String pathName)
Creates a new instance with root at pathName
.
pathName
- the root of the checked out repository
getLinesOfCode
public int getLinesOfCode(String filename)
throws NoLineCountException
Returns the lines of code for a repository file.
filename
- a file in the repository
- the lines of code for a repository file
NoLineCountException
- when the line count could not be retrieved,
for example when the file was not found.
getRevision
public String getRevision(String filename)
throws IOException
Returns the revision of filename in the local working directory by
reading the CVS/Entries file.