jetbrains.buildServer.vcs.patches
Class LowLevelPatchBuilderWrapper

java.lang.Object
  extended by jetbrains.buildServer.vcs.patches.LowLevelPatchBuilderWrapper
All Implemented Interfaces:
LowLevelPatch<LowLevelPatchBuilder.WriteFileContent,java.lang.String>, LowLevelPatchBuilder

public class LowLevelPatchBuilderWrapper
extends java.lang.Object
implements LowLevelPatchBuilder

Created by Eugene Petrenko (eugene.petrenko@gmail.com) Date: 12.11.12 23:13


Nested Class Summary
 
Nested classes/interfaces inherited from interface jetbrains.buildServer.vcs.patches.LowLevelPatchBuilder
LowLevelPatchBuilder.WriteFileContent
 
Constructor Summary
LowLevelPatchBuilderWrapper(LowLevelPatchBuilder host)
           
 
Method Summary
 void addDirectory(java.lang.String file)
           
 void changeBinary(java.lang.String file, long length, LowLevelPatchBuilder.WriteFileContent content, boolean create)
           
 void changeTextUsingBytes(java.lang.String file, byte[] lineSeparator, long length, LowLevelPatchBuilder.WriteFileContent 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 interrupt()
           
 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

LowLevelPatchBuilderWrapper

public LowLevelPatchBuilderWrapper(@NotNull
                                   LowLevelPatchBuilder host)
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface LowLevelPatchBuilder
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface LowLevelPatchBuilder
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<LowLevelPatchBuilder.WriteFileContent,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<LowLevelPatchBuilder.WriteFileContent,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<LowLevelPatchBuilder.WriteFileContent,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<LowLevelPatchBuilder.WriteFileContent,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<LowLevelPatchBuilder.WriteFileContent,java.lang.String>
Throws:
java.io.IOException

changeBinary

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

changeTextUsingBytes

public void changeTextUsingBytes(@NotNull
                                 java.lang.String file,
                                 @NotNull
                                 byte[] lineSeparator,
                                 long length,
                                 @NotNull
                                 LowLevelPatchBuilder.WriteFileContent content,
                                 boolean create)
                          throws java.io.IOException
Specified by:
changeTextUsingBytes in interface LowLevelPatch<LowLevelPatchBuilder.WriteFileContent,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<LowLevelPatchBuilder.WriteFileContent,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<LowLevelPatchBuilder.WriteFileContent,java.lang.String>
Throws:
java.io.IOException

interrupt

public void interrupt()
               throws java.io.IOException
Specified by:
interrupt in interface LowLevelPatchBuilder
Throws:
java.io.IOException