org.apache.commons.jrcs.rcs
Class ArchiveParser
java.lang.Object
org.apache.commons.jrcs.rcs.ArchiveParser
- All Implemented Interfaces:
- ArchiveParserConstants
class ArchiveParser
- extends java.lang.Object
- implements ArchiveParserConstants
Parses an RCS/CVS style version control archive into an Archive.
This class is NOT thread safe.
- Version:
- $Revision: 1.4 $ $Date: 2003/05/06 14:50:52 $
- Author:
- Juanco Anez
- See Also:
Archive
Fields inherited from interface org.apache.commons.jrcs.rcs.ArchiveParserConstants |
ACCESS, AUTHOR, BRANCH, BRANCHES, COLON, COMMENT, DATE, DATESTATE, DEFAULT, DESC, DIGIT, DIGITS, DOT, EOF, EOS, EXPAND, HEAD, ID, IDCHAR, IDSTATE, LOCKS, LOG, NEXT, NUM, STATE, STRICT, STRING, SYM, SYMBOLS, SYMBOLSTATE, TEXT, tokenImage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ident
static final java.lang.String ident
- See Also:
- Constant Field Values
token_source
public ArchiveParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
ArchiveParser
public ArchiveParser(java.io.InputStream in)
ArchiveParser
public ArchiveParser(CharStream stream)
ArchiveParser
public ArchiveParser(ArchiveParserTokenManager tm)
main
public static void main(java.lang.String[] args)
load
public static void load(Archive arc,
java.io.InputStream input)
throws ParseException
- Throws:
ParseException
load
public static void load(Archive arc,
java.lang.String fname)
throws java.io.FileNotFoundException,
ParseException
- Throws:
java.io.FileNotFoundException
ParseException
parse
public void parse()
archive
public final void archive(Archive arc)
throws ParseException
- PARSER STARTS HERE
- Throws:
ParseException
admin
public final void admin(Archive arc)
throws ParseException
- Throws:
ParseException
delta
public final void delta(Archive arc)
throws ParseException
- Throws:
ParseException
desc
public final void desc(Archive arc)
throws ParseException
- Throws:
ParseException
text
public final void text(Archive arc)
throws ParseException
- Throws:
ParseException
newPhrase
public final void newPhrase(java.util.Map map)
throws ParseException
- Throws:
ParseException
num
public final java.lang.String num()
throws ParseException
- Throws:
ParseException
id
public final java.lang.String id()
throws ParseException
- Throws:
ParseException
sym
public final java.lang.String sym()
throws ParseException
- Throws:
ParseException
string
public final java.lang.String string()
throws ParseException
- Throws:
ParseException
word
public final java.lang.String word()
throws ParseException
- Throws:
ParseException
version
public final Version version()
throws ParseException
- Throws:
ParseException
date
public final int[] date()
throws ParseException
- Throws:
ParseException
digits
public final int digits()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(CharStream stream)
ReInit
public void ReInit(ArchiveParserTokenManager tm)
jj_consume_token
private final Token jj_consume_token(int kind)
throws ParseException
- Throws:
ParseException
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()
Copyright 2002 the Apache Software Foundation
Copyright ? 1999-2001 Juancarlo A?ez, Caracas, Venezuela.
All rights reserved
. http://www.suigeneris.org/jrcs