Interface LowLevelPatch<T,F>
-
- Type Parameters:
T- type of stream accessF- type of file names
- All Known Subinterfaces:
LowLevelPatchBuilder,LowLevelPatcherListener
- All Known Implementing Classes:
DirectoryPatchBuilder,LowLevelPatchAdapter,LowLevelPatchBuilderImpl,LowLevelPatchBuilderWrapper,LowLevelPatchTranslator
public interface LowLevelPatch<T,F>Represents low-level access to patch stream. This interface is used both for reading and writing patch commands.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDirectory(F file)voidchangeBinary(F file, long length, T content, boolean create)voidchangeTextUsingBytes(F file, byte[] lineSeparator, long length, T content, boolean create)voiddelete(F file, boolean isFile, boolean emptyParent)voidexit(String message)voidfail(String message)voidrename(F oldName, F newName, boolean isFile, boolean emptyParent)voidsetFileMode(F file, String mode)voidsetTimeStamp(F file, long timestamp)
-
-
-
Method Detail
-
delete
void delete(@NotNull F file, boolean isFile, boolean emptyParent) throws IOException- Throws:
IOException
-
rename
void rename(@NotNull F oldName, @NotNull F newName, boolean isFile, boolean emptyParent) throws IOException- Throws:
IOException
-
setTimeStamp
void setTimeStamp(@NotNull F file, long timestamp) throws IOException- Throws:
IOException
-
setFileMode
void setFileMode(@NotNull F file, @NotNull String mode) throws IOException- Throws:
IOException
-
addDirectory
void addDirectory(@NotNull F file) throws IOException- Throws:
IOException
-
changeBinary
void changeBinary(@NotNull F file, long length, @NotNull T content, boolean create) throws IOException- Throws:
IOException
-
changeTextUsingBytes
void changeTextUsingBytes(@NotNull F file, @NotNull byte[] lineSeparator, long length, @NotNull T content, boolean create) throws IOException- Throws:
IOException
-
exit
void exit(@NotNull String message) throws IOException- Throws:
IOException
-
fail
void fail(@NotNull String message) throws IOException- Throws:
IOException
-
-