public class SvnLogfileParser
extends java.lang.Object
Builder
must be specified which does the construction work.| Modifier and Type | Class and Description |
|---|---|
protected class |
SvnLogfileParser.DiffTask |
protected class |
SvnLogfileParser.PerRevDiffTask |
| Constructor and Description |
|---|
SvnLogfileParser(RepositoryFileManager repositoryFileManager,
java.io.InputStream logFile,
SvnLogBuilder builder)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleLineCounts(javax.xml.parsers.SAXParserFactory factory)
Because the log file does not contain the lines added or removed in a
commit, and because the logfile contains implicit actions (@link
#verifyImplicitActions()), we must query the repository for line
differences.
|
void |
parse()
Parses the logfile.
|
protected javax.xml.parsers.SAXParserFactory |
parseSvnLog()
Parses the svn log file.
|
protected void |
removeDirectories()
We have created FileBuilders for directories because we needed the
information to be able to find implicit actions.
|
protected void |
verifyImplicitActions()
The svn log can contain deletions of directories which imply that all of
its contents have been deleted.
|
public SvnLogfileParser(RepositoryFileManager repositoryFileManager, java.io.InputStream logFile, SvnLogBuilder builder)
repositoryFileManager - the repository file managerlogFile - a Reader containing the SVN logfilebuilder - the builder that will process the log informationprotected void handleLineCounts(javax.xml.parsers.SAXParserFactory factory)
throws java.io.IOException
factory - the factory used to create SAX parsers.java.io.IOExceptionpublic void parse()
throws net.sf.statcvs.input.LogSyntaxException,
java.io.IOException
net.sf.statcvs.input.LogSyntaxException - if syntax errors in logjava.io.IOException - if errors while reading from the log Readerprotected void verifyImplicitActions()
protected void removeDirectories()
protected javax.xml.parsers.SAXParserFactory parseSvnLog()
throws java.io.IOException,
net.sf.statcvs.input.LogSyntaxException
java.io.IOException - errors while reading file.net.sf.statcvs.input.LogSyntaxException - invalid log syntax.