org.apache.maven.scm.provider.cvslib.command.diff
Class CvsDiffConsumer

java.lang.Object
  extended byorg.apache.maven.scm.provider.cvslib.command.diff.CvsDiffConsumer
All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer

public class CvsDiffConsumer
extends java.lang.Object
implements org.codehaus.plexus.util.cli.StreamConsumer

Version:
$Id: CvsDiffConsumer.java 191730 2005-06-21 21:35:52Z evenisse $
Author:
Brett Porter

Field Summary
private static java.lang.String ADDED_LINE_TOKEN
           
private static java.lang.String CHANGE_SEPARATOR_TOKEN
           
private  java.util.List changedFiles
           
private  java.lang.StringBuffer currentDifference
           
private  java.lang.String currentFile
           
private static java.lang.String DIFF_TOKEN
           
private  java.util.Map differences
           
private static java.lang.String END_REVISION_TOKEN
           
private static java.lang.String FILE_SEPARATOR_TOKEN
           
private static java.lang.String INDEX_TOKEN
           
private  org.apache.maven.scm.log.ScmLogger logger
           
private static java.lang.String NO_NEWLINE_TOKEN
           
private  java.lang.StringBuffer patch
           
private static java.lang.String RCS_TOKEN
           
private static java.lang.String REMOVED_LINE_TOKEN
           
private static java.lang.String RETRIEVING_TOKEN
           
private static java.lang.String START_REVISION_TOKEN
           
private static java.lang.String UNCHANGED_LINE_TOKEN
           
private  java.io.File workingDirectory
           
 
Constructor Summary
CvsDiffConsumer(org.apache.maven.scm.log.ScmLogger logger, java.io.File workingDirectory)
           
 
Method Summary
 void consumeLine(java.lang.String line)
           
 java.util.List getChangedFiles()
           
 java.util.Map getDifferences()
           
 java.lang.String getPatch()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_TOKEN

private static final java.lang.String RCS_TOKEN
See Also:
Constant Field Values

RETRIEVING_TOKEN

private static final java.lang.String RETRIEVING_TOKEN
See Also:
Constant Field Values

DIFF_TOKEN

private static final java.lang.String DIFF_TOKEN
See Also:
Constant Field Values

INDEX_TOKEN

private static final java.lang.String INDEX_TOKEN
See Also:
Constant Field Values

FILE_SEPARATOR_TOKEN

private static final java.lang.String FILE_SEPARATOR_TOKEN
See Also:
Constant Field Values

START_REVISION_TOKEN

private static final java.lang.String START_REVISION_TOKEN
See Also:
Constant Field Values

END_REVISION_TOKEN

private static final java.lang.String END_REVISION_TOKEN
See Also:
Constant Field Values

ADDED_LINE_TOKEN

private static final java.lang.String ADDED_LINE_TOKEN
See Also:
Constant Field Values

REMOVED_LINE_TOKEN

private static final java.lang.String REMOVED_LINE_TOKEN
See Also:
Constant Field Values

UNCHANGED_LINE_TOKEN

private static final java.lang.String UNCHANGED_LINE_TOKEN
See Also:
Constant Field Values

CHANGE_SEPARATOR_TOKEN

private static final java.lang.String CHANGE_SEPARATOR_TOKEN
See Also:
Constant Field Values

NO_NEWLINE_TOKEN

private static final java.lang.String NO_NEWLINE_TOKEN
See Also:
Constant Field Values

logger

private org.apache.maven.scm.log.ScmLogger logger

workingDirectory

private java.io.File workingDirectory

currentFile

private java.lang.String currentFile

currentDifference

private java.lang.StringBuffer currentDifference

changedFiles

private java.util.List changedFiles

differences

private java.util.Map differences

patch

private java.lang.StringBuffer patch
Constructor Detail

CvsDiffConsumer

public CvsDiffConsumer(org.apache.maven.scm.log.ScmLogger logger,
                       java.io.File workingDirectory)
Method Detail

consumeLine

public void consumeLine(java.lang.String line)
Specified by:
consumeLine in interface org.codehaus.plexus.util.cli.StreamConsumer

getChangedFiles

public java.util.List getChangedFiles()

getDifferences

public java.util.Map getDifferences()

getPatch

public java.lang.String getPatch()