Class FSPatcherCallbackImpl
- java.lang.Object
-
- jetbrains.buildServer.vcs.patches.FSPatcherCallbackImpl
-
- All Implemented Interfaces:
AbstractFSPatcherCallback
public abstract class FSPatcherCallbackImpl extends Object implements AbstractFSPatcherCallback
- Author:
- Eugene Petrenko Created: 05.05.2009 20:22:37
-
-
Constructor Summary
Constructors Constructor Description FSPatcherCallbackImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addDirectory(File file)
void
deleteFile(File file, boolean deleteParentDirectoryIfEmpty, boolean isFile)
abstract PatcherErrorHandler
getErrorHandler()
protected AbstractFSPatcherCallback
getThis()
use this for recursive calls to implemented methods that involves parent foldersvoid
renameFile(File oldFile, 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 filePath, String fileMode)
void
setReadonlyAttribute(File filePath, boolean isReadonly)
void
setTimeStamp(File filePath, long timeStamp)
-
-
-
Method Detail
-
getThis
@NotNull protected AbstractFSPatcherCallback getThis()
use this for recursive calls to implemented methods that involves parent folders- Returns:
- see above
-
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 oldFile, @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 filePath, @NotNull String fileMode) throws IOException
- Specified by:
setFileMode
in interfaceAbstractFSPatcherCallback
- Throws:
IOException
-
setTimeStamp
public void setTimeStamp(@NotNull File filePath, 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
-
getErrorHandler
public abstract PatcherErrorHandler getErrorHandler()
-
-