|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.ultrametrics.rcs.History
Encapsulation of history for an RCS controlled object. Includes all log entries and modifications associated with the history of of the life of an RCS object.
Field Summary | |
static java.lang.String |
_rcsId
|
protected java.io.BufferedReader |
reader
|
Constructor Summary | |
History(java.io.BufferedReader reader)
Create a new history. |
Method Summary | |
void |
dump()
Similar to toString(), but more verbose and dumps directly to stderr. |
boolean |
dump(java.lang.String version)
|
Revision |
get(java.lang.String version)
Retrieve a specific revision by version number. |
Revision |
getFirstRevision()
Retrieve the first (initial) revision for this RCS object. |
java.util.Set |
keySet()
Retrieve an set of the keys (version numbers) which can be used to retrieve revisions. |
boolean |
parse()
Parse a history block. |
protected static java.lang.String |
parseDescriptionBlock(java.io.BufferedReader br)
All RCS files have a description block. |
java.lang.String |
toString()
|
java.util.Collection |
values()
Retrieve the collection of all revisions. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.io.BufferedReader reader
public static final java.lang.String _rcsId
Constructor Detail |
public History(java.io.BufferedReader reader)
reader
- the buffered reader from which the history will be
subsequently parsed.Method Detail |
public Revision getFirstRevision()
usually '1.1'
public Revision get(java.lang.String version)
version
- the RCS version number.public java.util.Set keySet()
note: the lookup keys return have been internally expanded so they are unique and sortable. They won't match the simple keys used on get() methods. This isn't an issue here because access to the map of revisions is expected to be read-only. private buildRevisions() is only writer and is internal.
public java.util.Collection values()
public boolean parse() throws ParserException
ControlInformation.parse()
protected static java.lang.String parseDescriptionBlock(java.io.BufferedReader br) throws ParserException
br
- the buffered reader, prepositioned at the description block.public java.lang.String toString()
public void dump()
public boolean dump(java.lang.String version)
the
- RCS version of the history block to dump.dump()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |