Class StarteamDiffConsumer

  • All Implemented Interfaces:
    org.codehaus.plexus.util.cli.StreamConsumer

    public class StarteamDiffConsumer
    extends java.lang.Object
    implements org.codehaus.plexus.util.cli.StreamConsumer
    • Field Detail

      • WORKING_DIR_TOKEN

        private static final java.lang.String WORKING_DIR_TOKEN
        See Also:
        Constant Field Values
      • PATCH_SEPARATOR_TOKEN

        private static final java.lang.String PATCH_SEPARATOR_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
      • currentDir

        private java.lang.String currentDir
      • diffBlockProcessingStarted

        private boolean diffBlockProcessingStarted
      • revisionBlockStarted

        private boolean revisionBlockStarted
      • currentFile

        private java.lang.String currentFile
      • currentDifference

        private java.lang.StringBuilder currentDifference
      • changedFiles

        private java.util.List<ScmFile> changedFiles
      • differences

        private java.util.Map<java.lang.String,​java.lang.CharSequence> differences
      • patch

        private java.lang.StringBuilder patch
    • Constructor Detail

      • StarteamDiffConsumer

        public StarteamDiffConsumer​(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
      • processGetDir

        private void processGetDir​(java.lang.String line,
                                   int pos)
        Process the current input line in the Get Directory
        Parameters:
        line - a line of text from the Starteam log output
      • extractCurrentFile

        private void extractCurrentFile​(java.lang.String line,
                                        int pos)
      • getChangedFiles

        public java.util.List<ScmFile> getChangedFiles()
      • getDifferences

        public java.util.Map<java.lang.String,​java.lang.CharSequence> getDifferences()
      • getPatch

        public java.lang.String getPatch()