org.apache.maven.scm.provider.svn.command.diff
Class SvnDiffConsumer

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

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

Version:
$Id: SvnDiffConsumer.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  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 REMOVED_LINE_TOKEN
           
private static java.lang.String REVISION_TOKEN
           
private static java.lang.String START_REVISION_TOKEN
           
private static java.lang.String UNCHANGED_LINE_TOKEN
           
private static java.lang.String WORKING_COPY_TOKEN
           
private  java.io.File workingDirectory
           
 
Constructor Summary
SvnDiffConsumer(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

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

REVISION_TOKEN

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

WORKING_COPY_TOKEN

private static final java.lang.String WORKING_COPY_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

SvnDiffConsumer

public SvnDiffConsumer(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()