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 voidaddDirectory(File file)voiddeleteFile(File file, boolean deleteParentDirectoryIfEmpty, boolean isFile)abstract PatcherErrorHandlergetErrorHandler()protected AbstractFSPatcherCallbackgetThis()use this for recursive calls to implemented methods that involves parent foldersvoidrenameFile(File oldFile, 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 filePath, String fileMode)voidsetReadonlyAttribute(File filePath, boolean isReadonly)voidsetTimeStamp(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:
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 oldFile, @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 filePath, @NotNull String fileMode) throws IOException- Specified by:
setFileModein interfaceAbstractFSPatcherCallback- Throws:
IOException
-
setTimeStamp
public void setTimeStamp(@NotNull File filePath, 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
-
getErrorHandler
public abstract PatcherErrorHandler getErrorHandler()
-
-