public class RepositoryFileManager
extends java.lang.Object
| Constructor | Description |
|---|---|
RepositoryFileManager(java.lang.String pathName) |
Creates a new instance with root at
pathName. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getLinesOfCode(java.lang.String filename) |
Returns the lines of code for a repository file.
|
java.lang.String |
getRevision(java.lang.String filename) |
Returns the revision of filename in the local working directory by
reading the CVS/Entries file.
|
public RepositoryFileManager(java.lang.String pathName)
pathName.pathName - the root of the checked out repositorypublic int getLinesOfCode(java.lang.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 java.lang.String getRevision(java.lang.String filename)
throws java.io.IOException
filename - the filenamejava.io.IOException