Package net.sf.statcvs.input
Class RepositoryFileManager
java.lang.Object
net.sf.statcvs.input.RepositoryFileManager
Manages a checked-out repository and provides access to
line number counts for repository files.
- Version:
- $Id: RepositoryFileManager.java,v 1.27 2009/08/20 17:44:05 benoitx Exp $
- Author:
- Manuel Schulze, Steffen Pingel
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryFileManager
(String pathName) Creates a new instance with root atpathName
. -
Method Summary
Modifier and TypeMethodDescriptionint
getLinesOfCode
(String filename) Returns the lines of code for a repository file.getRevision
(String filename) Returns the revision of filename in the local working directory by reading the CVS/Entries file.
-
Constructor Details
-
RepositoryFileManager
Creates a new instance with root atpathName
.- Parameters:
pathName
- the root of the checked out repository
-
-
Method Details
-
getLinesOfCode
Returns the lines of code for a repository file.- Parameters:
filename
- a file in the repository- Returns:
- the lines of code for a repository file
- Throws:
NoLineCountException
- when the line count could not be retrieved, for example when the file was not found.
-
getRevision
Returns the revision of filename in the local working directory by reading the CVS/Entries file.- Parameters:
filename
- the filename- Returns:
- the revision of filename
- Throws:
IOException
-