jetbrains.buildServer.vcs.patches
Class LowLevelPatchBuilderImpl

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

public class LowLevelPatchBuilderImpl
extends java.lang.Object
implements LowLevelPatchBuilder

Created by IntelliJ IDEA. User: Eugene.Petrenko Date: 16.07.2007 Time: 17:34:25


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

LowLevelPatchBuilderImpl

public LowLevelPatchBuilderImpl(@NotNull
                                java.io.OutputStream outputStream)

LowLevelPatchBuilderImpl

public LowLevelPatchBuilderImpl(@NotNull
                                java.io.DataOutputStream outputStream)
Method Detail

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

changeBinary

public void changeBinary(@NotNull
                         java.lang.String file,
                         long length,
                         @NotNull
                         LowLevelPatchBuilder.WriteFileContent writer,
                         boolean create)
                  throws java.io.IOException
Specified by:
changeBinary 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

changeTextUsingBytes

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

close

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

interrupt

public void interrupt()
               throws java.io.IOException
Specified by:
interrupt 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