jetbrains.buildServer.vcs.patches
Class LowLevelPatchTranslator

java.lang.Object
  extended by jetbrains.buildServer.vcs.patches.LowLevelPatchTranslator
All Implemented Interfaces:
LowLevelPatch<LowLevelPatcherListener.ReadFileContent,java.lang.String>, LowLevelPatcherListener

public class LowLevelPatchTranslator
extends java.lang.Object
implements LowLevelPatcherListener

Created by Eugene Petrenko (eugene.petrenko@gmail.com) Date: 12.11.12 22:49


Nested Class Summary
 
Nested classes/interfaces inherited from interface jetbrains.buildServer.vcs.patches.LowLevelPatcherListener
LowLevelPatcherListener.ReadFileContent
 
Constructor Summary
LowLevelPatchTranslator(LowLevelPatchBuilder builder)
           
 
Method Summary
 void addDirectory(java.lang.String file)
           
 void changeBinary(java.lang.String file, long length, LowLevelPatcherListener.ReadFileContent content, boolean create)
           
 void changeTextUsingBytes(java.lang.String file, byte[] lineSeparator, long length, LowLevelPatcherListener.ReadFileContent content, boolean create)
           
 void close()
           
 void delete(java.lang.String file, boolean isFile, boolean emptyParent)
           
 void exit(java.lang.String message)
           
 void fail(java.lang.String message)
           
 void flush()
           
 void rename(java.lang.String oldName, java.lang.String newName, boolean isFile, boolean emptyParent)
           
 void setFileMode(java.lang.String file, java.lang.String mode)
           
 void setTimeStamp(java.lang.String file, long timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LowLevelPatchTranslator

public LowLevelPatchTranslator(@NotNull
                               LowLevelPatchBuilder builder)
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException

delete

public void delete(@NotNull
                   java.lang.String file,
                   boolean isFile,
                   boolean emptyParent)
            throws java.io.IOException
Specified by:
delete in interface LowLevelPatch<LowLevelPatcherListener.ReadFileContent,java.lang.String>
Throws:
java.io.IOException

rename

public void rename(@NotNull
                   java.lang.String oldName,
                   @NotNull
                   java.lang.String newName,
                   boolean isFile,
                   boolean emptyParent)
            throws java.io.IOException
Specified by:
rename in interface LowLevelPatch<LowLevelPatcherListener.ReadFileContent,java.lang.String>
Throws:
java.io.IOException

setTimeStamp

public void setTimeStamp(@NotNull
                         java.lang.String file,
                         long timestamp)
                  throws java.io.IOException
Specified by:
setTimeStamp in interface LowLevelPatch<LowLevelPatcherListener.ReadFileContent,java.lang.String>
Throws:
java.io.IOException

setFileMode

public void setFileMode(@NotNull
                        java.lang.String file,
                        @NotNull
                        java.lang.String mode)
                 throws java.io.IOException
Specified by:
setFileMode in interface LowLevelPatch<LowLevelPatcherListener.ReadFileContent,java.lang.String>
Throws:
java.io.IOException

addDirectory

public void addDirectory(@NotNull
                         java.lang.String file)
                  throws java.io.IOException
Specified by:
addDirectory in interface LowLevelPatch<LowLevelPatcherListener.ReadFileContent,java.lang.String>
Throws:
java.io.IOException

changeBinary

public void changeBinary(@NotNull
                         java.lang.String file,
                         long length,
                         @NotNull
                         LowLevelPatcherListener.ReadFileContent content,
                         boolean create)
                  throws java.io.IOException
Specified by:
changeBinary in interface LowLevelPatch<LowLevelPatcherListener.ReadFileContent,java.lang.String>
Throws:
java.io.IOException

changeTextUsingBytes

public void changeTextUsingBytes(@NotNull
                                 java.lang.String file,
                                 @NotNull
                                 byte[] lineSeparator,
                                 long length,
                                 @NotNull
                                 LowLevelPatcherListener.ReadFileContent content,
                                 boolean create)
                          throws java.io.IOException
Specified by:
changeTextUsingBytes in interface LowLevelPatch<LowLevelPatcherListener.ReadFileContent,java.lang.String>
Throws:
java.io.IOException

exit

public void exit(@NotNull
                 java.lang.String message)
          throws java.io.IOException
Specified by:
exit in interface LowLevelPatch<LowLevelPatcherListener.ReadFileContent,java.lang.String>
Throws:
java.io.IOException

fail

public void fail(@NotNull
                 java.lang.String message)
          throws java.io.IOException
Specified by:
fail in interface LowLevelPatch<LowLevelPatcherListener.ReadFileContent,java.lang.String>
Throws:
java.io.IOException