Class UndoAbstractFSPatcherCallback
- java.lang.Object
-
- jetbrains.buildServer.vcs.patches.UndoAbstractFSPatcherCallback
-
- All Implemented Interfaces:
AbstractFSPatcherCallback
public class UndoAbstractFSPatcherCallback extends Object implements AbstractFSPatcherCallback
Callbacks for undo fs patcher.- Since:
- 2019.1
- Author:
- Mikhail Khorkov
-
-
Constructor Summary
Constructors Constructor Description UndoAbstractFSPatcherCallback(FSUndoPatchBuilder undo, PatcherErrorHandler errorHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDirectory(File file)voiddeleteFile(File file, boolean deleteParentDirectoryIfEmpty, boolean isFile)voidrenameFile(File file, File newPath, boolean deleteParentDirectoryIfEmpty, boolean isFile)voidreplaceBinary(File file, long length, boolean newFile, LowLevelPatcherListener.ReadFileContent content)voidreplaceTextUsingBytes(File file, long size, byte[] sep, boolean newFile, LowLevelPatcherListener.ReadFileContent content)voidsetFileMode(File file, String fileMode)voidsetReadonlyAttribute(File filePath, boolean isReadonly)voidsetTimeStamp(File file, long timeStamp)
-
-
-
Constructor Detail
-
UndoAbstractFSPatcherCallback
public UndoAbstractFSPatcherCallback(FSUndoPatchBuilder undo, PatcherErrorHandler errorHandler)
-
-
Method Detail
-
addDirectory
public void addDirectory(@NotNull File file) throws IOException- Specified by:
addDirectoryin interfaceAbstractFSPatcherCallback- Throws:
IOException
-
deleteFile
public void deleteFile(@NotNull File file, boolean deleteParentDirectoryIfEmpty, boolean isFile) throws IOException- Specified by:
deleteFilein interfaceAbstractFSPatcherCallback- Throws:
IOException
-
renameFile
public void renameFile(@NotNull File file, @NotNull File newPath, boolean deleteParentDirectoryIfEmpty, boolean isFile) throws IOException- Specified by:
renameFilein interfaceAbstractFSPatcherCallback- Throws:
IOException
-
replaceBinary
public void replaceBinary(@NotNull File file, long length, boolean newFile, @NotNull LowLevelPatcherListener.ReadFileContent content) throws IOException- Specified by:
replaceBinaryin interfaceAbstractFSPatcherCallback- Throws:
IOException
-
replaceTextUsingBytes
public void replaceTextUsingBytes(@NotNull File file, long size, @NotNull byte[] sep, boolean newFile, @NotNull LowLevelPatcherListener.ReadFileContent content) throws IOException- Specified by:
replaceTextUsingBytesin interfaceAbstractFSPatcherCallback- Throws:
IOException
-
setFileMode
public void setFileMode(@NotNull File file, @NotNull String fileMode) throws IOException- Specified by:
setFileModein interfaceAbstractFSPatcherCallback- Throws:
IOException
-
setTimeStamp
public void setTimeStamp(@NotNull File file, long timeStamp) throws IOException- Specified by:
setTimeStampin interfaceAbstractFSPatcherCallback- Throws:
IOException
-
setReadonlyAttribute
public void setReadonlyAttribute(@NotNull File filePath, boolean isReadonly) throws IOException- Specified by:
setReadonlyAttributein interfaceAbstractFSPatcherCallback- Throws:
IOException
-
-