org.sourcejammer.server.keywords
Class HistoryExpander

java.lang.Object
  |
  +--org.sourcejammer.server.keywords.KeywordExpander
        |
        +--org.sourcejammer.server.keywords.HistoryExpander
All Implemented Interfaces:
KeywordTags

public class HistoryExpander
extends KeywordExpander

Title: SourceJammer Server 1.3 Description: Copyright: Copyright (c) 2002 Company: SourceJammer

Version:
1.0
Author:
Rob MacGrogan

Field Summary
private  java.lang.String endLine
           
private  int numCharactersAdded
           
 
Fields inherited from interface org.sourcejammer.server.keywords.KeywordTags
ARCHIVE_NAME, COMMENT_LINE_LEN, COMMENT_LINE_OFFSET, DESCRIPTION, FILE_ID, FILE_LOCATION, FILE_NAME, HIST_COL_COMMENT, HIST_COL_DATE, HIST_COL_TASK, HIST_COL_USER, HIST_COL_VER, HIST_DATE_LEN, HIST_HALF_LINE_LEN, HIST_LINE_COMMENT, HIST_LINE_DATE, HIST_LINE_TASK, HIST_LINE_USER, HIST_LINE_VER, HIST_SEPARATOR, HIST_TASK_LEN, HIST_USER_LEN, HIST_VER_LEN, HISTORY, KEYWORD_INDICATOR, KEYWORD_NAME_VAL_SEP, LAST_COMMENT, LINE_MAX_LENGTH, MODIFIED_DATE, OFF, SPACE, USER_FULL_NAME, USER_NAME, VERSION_ID, VERSION_NUMBER
 
Constructor Summary
HistoryExpander()
           
 
Method Summary
 int expand(java.lang.String line, int keywordBeginIndex, java.util.Vector lines, ProjectObjects obj, org.sourcejammer.util.BufferedLineReader reader)
          Expand any keywords in current line.
private  int locateEndKeywordIndicator(java.lang.String line, org.sourcejammer.util.BufferedLineReader reader, java.util.Vector vecLines)
          Here we skip past all the history already in the file.
 
Methods inherited from class org.sourcejammer.server.keywords.KeywordExpander
formatLines, getBeginNewLine, getBeginNewLineIndent, getSeparatorIndex, replaceKeywordWithValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numCharactersAdded

private int numCharactersAdded

endLine

private java.lang.String endLine
Constructor Detail

HistoryExpander

public HistoryExpander()
Method Detail

expand

public int expand(java.lang.String line,
                  int keywordBeginIndex,
                  java.util.Vector lines,
                  ProjectObjects obj,
                  org.sourcejammer.util.BufferedLineReader reader)
           throws java.io.IOException,
                  KeywordExpansionException
Description copied from class: KeywordExpander
Expand any keywords in current line.

Specified by:
expand in class KeywordExpander
Returns:
Number of characters in all Strings added to lines Vector.
java.io.IOException
KeywordExpansionException

locateEndKeywordIndicator

private int locateEndKeywordIndicator(java.lang.String line,
                                      org.sourcejammer.util.BufferedLineReader reader,
                                      java.util.Vector vecLines)
                               throws KeywordExpansionException,
                                      java.io.IOException
Here we skip past all the history already in the file.

KeywordExpansionException
java.io.IOException


Copyright © 2003 Soucejammer project.