public class PatchUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
applyPatch(File patch,
File context)
Applies the patch file on the context file or folder.
|
static boolean |
isPatch(File patch)
Returns true only if the given file is a patch
in a format recognizable as a
context
normal
unified
|
public static void applyPatch(File patch, File context) throws IOException
patch
- the patch filecontext
- the file or folder to be updated with the patchPatchException
IOException
- - the patch is invalid or cannot be appliedpublic static boolean isPatch(File patch) throws IOException
file
- patch fileIOException