|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.statcvs.input.RepositoryFileManager
public class RepositoryFileManager
Manages a checked-out repository and provides access to line number counts for repository files.
Constructor Summary | |
---|---|
RepositoryFileManager(java.lang.String pathName)
Creates a new instance with root at pathName . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryFileManager(java.lang.String pathName)
pathName
.
pathName
- the root of the checked out repositoryMethod Detail |
---|
public int getLinesOfCode(java.lang.String filename) throws NoLineCountException
filename
- a file in the repository
NoLineCountException
- 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 filename
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |