Class LowLevelPatchBuilderWrapper
- java.lang.Object
-
- jetbrains.buildServer.vcs.patches.LowLevelPatchBuilderWrapper
-
- All Implemented Interfaces:
LowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>
,LowLevelPatchBuilder
public class LowLevelPatchBuilderWrapper extends 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
Constructors Constructor Description LowLevelPatchBuilderWrapper(LowLevelPatchBuilder host)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDirectory(String file)
void
changeBinary(String file, long length, LowLevelPatchBuilder.WriteFileContent content, boolean create)
void
changeTextUsingBytes(String file, byte[] lineSeparator, long length, LowLevelPatchBuilder.WriteFileContent content, boolean create)
void
close()
void
delete(String file, boolean isFile, boolean emptyParent)
void
exit(String message)
void
fail(String message)
void
flush()
void
interrupt()
void
noOp()
void
rename(String oldName, String newName, boolean isFile, boolean emptyParent)
void
setFileMode(String file, String mode)
void
setTimeStamp(String file, long timestamp)
-
-
-
Constructor Detail
-
LowLevelPatchBuilderWrapper
public LowLevelPatchBuilderWrapper(@NotNull LowLevelPatchBuilder host)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceLowLevelPatchBuilder
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceLowLevelPatchBuilder
- Throws:
IOException
-
delete
public void delete(@NotNull String file, boolean isFile, boolean emptyParent) throws IOException
- Specified by:
delete
in interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>
- Throws:
IOException
-
rename
public void rename(@NotNull String oldName, @NotNull String newName, boolean isFile, boolean emptyParent) throws IOException
- Specified by:
rename
in interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>
- Throws:
IOException
-
setTimeStamp
public void setTimeStamp(@NotNull String file, long timestamp) throws IOException
- Specified by:
setTimeStamp
in interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>
- Throws:
IOException
-
setFileMode
public void setFileMode(@NotNull String file, @NotNull String mode) throws IOException
- Specified by:
setFileMode
in interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>
- Throws:
IOException
-
addDirectory
public void addDirectory(@NotNull String file) throws IOException
- Specified by:
addDirectory
in interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>
- Throws:
IOException
-
changeBinary
public void changeBinary(@NotNull String file, long length, @NotNull LowLevelPatchBuilder.WriteFileContent content, boolean create) throws IOException
- Specified by:
changeBinary
in interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>
- Throws:
IOException
-
changeTextUsingBytes
public void changeTextUsingBytes(@NotNull String file, @NotNull byte[] lineSeparator, long length, @NotNull LowLevelPatchBuilder.WriteFileContent content, boolean create) throws IOException
- Specified by:
changeTextUsingBytes
in interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>
- Throws:
IOException
-
exit
public void exit(@NotNull String message) throws IOException
- Specified by:
exit
in interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>
- Throws:
IOException
-
fail
public void fail(@NotNull String message) throws IOException
- Specified by:
fail
in interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>
- Throws:
IOException
-
interrupt
public void interrupt() throws IOException
- Specified by:
interrupt
in interfaceLowLevelPatchBuilder
- Throws:
IOException
-
noOp
public void noOp() throws IOException
- Specified by:
noOp
in interfaceLowLevelPatchBuilder
- Throws:
IOException
-
-