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 void
addDirectory(File file)
void
deleteFile(File file, boolean deleteParentDirectoryIfEmpty, boolean isFile)
void
renameFile(File file, File newPath, boolean deleteParentDirectoryIfEmpty, boolean isFile)
void
replaceBinary(File file, long length, boolean newFile, LowLevelPatcherListener.ReadFileContent content)
void
replaceTextUsingBytes(File file, long size, byte[] sep, boolean newFile, LowLevelPatcherListener.ReadFileContent content)
void
setFileMode(File file, String fileMode)
void
setReadonlyAttribute(File filePath, boolean isReadonly)
void
setTimeStamp(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:
addDirectory
in interfaceAbstractFSPatcherCallback
- Throws:
IOException
-
deleteFile
public void deleteFile(@NotNull File file, boolean deleteParentDirectoryIfEmpty, boolean isFile) throws IOException
- Specified by:
deleteFile
in interfaceAbstractFSPatcherCallback
- Throws:
IOException
-
renameFile
public void renameFile(@NotNull File file, @NotNull File newPath, boolean deleteParentDirectoryIfEmpty, boolean isFile) throws IOException
- Specified by:
renameFile
in interfaceAbstractFSPatcherCallback
- Throws:
IOException
-
replaceBinary
public void replaceBinary(@NotNull File file, long length, boolean newFile, @NotNull LowLevelPatcherListener.ReadFileContent content) throws IOException
- Specified by:
replaceBinary
in 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:
replaceTextUsingBytes
in interfaceAbstractFSPatcherCallback
- Throws:
IOException
-
setFileMode
public void setFileMode(@NotNull File file, @NotNull String fileMode) throws IOException
- Specified by:
setFileMode
in interfaceAbstractFSPatcherCallback
- Throws:
IOException
-
setTimeStamp
public void setTimeStamp(@NotNull File file, long timeStamp) throws IOException
- Specified by:
setTimeStamp
in interfaceAbstractFSPatcherCallback
- Throws:
IOException
-
setReadonlyAttribute
public void setReadonlyAttribute(@NotNull File filePath, boolean isReadonly) throws IOException
- Specified by:
setReadonlyAttribute
in interfaceAbstractFSPatcherCallback
- Throws:
IOException
-
-