net.sf.statcvs.input
public class RepositoryFileManager extends Object
Constructor and Description |
---|
RepositoryFileManager(String pathName)
Creates a new instance with root at
pathName . |
Modifier and Type | Method and Description |
---|---|
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.
|
public RepositoryFileManager(String pathName)
pathName
.pathName
- the root of the checked out repositorypublic int getLinesOfCode(String filename) throws NoLineCountException
filename
- a file in the repositoryNoLineCountException
- when the line count could not be retrieved,
for example when the file was not found.public String getRevision(String filename) throws IOException
filename
- the filenameIOException