Class LowLevelPatchTranslator
- java.lang.Object
-
- jetbrains.buildServer.vcs.patches.LowLevelPatchTranslator
-
- All Implemented Interfaces:
LowLevelPatch<LowLevelPatcherListener.ReadFileContent,String>,LowLevelPatcherListener
public class LowLevelPatchTranslator extends 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
Constructors Constructor Description LowLevelPatchTranslator(LowLevelPatchBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDirectory(String file)voidchangeBinary(String file, long length, LowLevelPatcherListener.ReadFileContent content, boolean create)voidchangeTextUsingBytes(String file, byte[] lineSeparator, long length, LowLevelPatcherListener.ReadFileContent content, boolean create)voidclose()voiddelete(String file, boolean isFile, boolean emptyParent)voidexit(String message)voidfail(String message)voidflush()voidrename(String oldName, String newName, boolean isFile, boolean emptyParent)voidsetFileMode(String file, String mode)voidsetTimeStamp(String file, long timestamp)
-
-
-
Constructor Detail
-
LowLevelPatchTranslator
public LowLevelPatchTranslator(@NotNull LowLevelPatchBuilder builder)
-
-
Method Detail
-
close
public void close() throws IOException- Throws:
IOException
-
flush
public void flush() throws IOException- Throws:
IOException
-
delete
public void delete(@NotNull String file, boolean isFile, boolean emptyParent) throws IOException- Specified by:
deletein interfaceLowLevelPatch<LowLevelPatcherListener.ReadFileContent,String>- Throws:
IOException
-
rename
public void rename(@NotNull String oldName, @NotNull String newName, boolean isFile, boolean emptyParent) throws IOException- Specified by:
renamein interfaceLowLevelPatch<LowLevelPatcherListener.ReadFileContent,String>- Throws:
IOException
-
setTimeStamp
public void setTimeStamp(@NotNull String file, long timestamp) throws IOException- Specified by:
setTimeStampin interfaceLowLevelPatch<LowLevelPatcherListener.ReadFileContent,String>- Throws:
IOException
-
setFileMode
public void setFileMode(@NotNull String file, @NotNull String mode) throws IOException- Specified by:
setFileModein interfaceLowLevelPatch<LowLevelPatcherListener.ReadFileContent,String>- Throws:
IOException
-
addDirectory
public void addDirectory(@NotNull String file) throws IOException- Specified by:
addDirectoryin interfaceLowLevelPatch<LowLevelPatcherListener.ReadFileContent,String>- Throws:
IOException
-
changeBinary
public void changeBinary(@NotNull String file, long length, @NotNull LowLevelPatcherListener.ReadFileContent content, boolean create) throws IOException- Specified by:
changeBinaryin interfaceLowLevelPatch<LowLevelPatcherListener.ReadFileContent,String>- Throws:
IOException
-
changeTextUsingBytes
public void changeTextUsingBytes(@NotNull String file, @NotNull byte[] lineSeparator, long length, @NotNull LowLevelPatcherListener.ReadFileContent content, boolean create) throws IOException- Specified by:
changeTextUsingBytesin interfaceLowLevelPatch<LowLevelPatcherListener.ReadFileContent,String>- Throws:
IOException
-
exit
public void exit(@NotNull String message) throws IOException- Specified by:
exitin interfaceLowLevelPatch<LowLevelPatcherListener.ReadFileContent,String>- Throws:
IOException
-
fail
public void fail(@NotNull String message) throws IOException- Specified by:
failin interfaceLowLevelPatch<LowLevelPatcherListener.ReadFileContent,String>- Throws:
IOException
-
-