org.opensolaris.opengrok.history
Class PerforceHistoryParser
java.lang.Object
org.opensolaris.opengrok.history.PerforceHistoryParser
public class PerforceHistoryParser
- extends java.lang.Object
Parse source history for a Perforce Repository
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerforceHistoryParser
public PerforceHistoryParser()
getRevisions
public static History getRevisions(java.io.File file,
java.lang.String rev)
throws java.io.IOException
- Throws:
java.io.IOException
parseChanges
protected static History parseChanges(java.io.Reader fileHistory)
throws java.io.IOException
- Parses the history in the given string. The given reader will be closed.
- Parameters:
fileHistory
- String with history to parse
- Returns:
- History object with all the history entries
- Throws:
java.io.IOException
- if it fails to read from the supplied reader
parseFileLog
protected static History parseFileLog(java.io.Reader fileLog)
throws java.io.IOException
- Parse file log. Te supplied reader will be closed.
- Parameters:
fileLog
- reader to the information to parse
- Returns:
- A history object containing history entries
- Throws:
java.io.IOException
- If it fails to read from the supplied reader.