Class SVNPatch
java.lang.Object
org.tmatesoft.svn.core.internal.wc.patch.SVNPatch
Data type to manage parsing of patches.
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
private List
An array containing an svn_hunk_t object for each hunk parsed from the patch.static final String
private File
private File
The old and new file names as retrieved from the patch file.private SVNPatchFileStream
The patch file itself.private File
Path to the patch file.static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getHunks()
getPath()
static SVNPatch
parseNextPatch
(SVNPatchFileStream patchFile) Return the next PATCH in PATCH_FILE.
-
Field Details
-
MINUS
- See Also:
-
PLUS
- See Also:
-
ATAT
- See Also:
-
path
Path to the patch file. -
patchFile
The patch file itself. -
oldFilename
The old and new file names as retrieved from the patch file. These paths are UTF-8 encoded and canonicalized, but otherwise left unchanged from how they appeared in the patch file. -
newFilename
-
hunks
An array containing an svn_hunk_t object for each hunk parsed from the patch.
-
-
Constructor Details
-
SVNPatch
public SVNPatch()
-
-
Method Details
-
getPath
-
getPatchFile
-
getOldFilename
-
getNewFilename
-
getHunks
-
close
- Throws:
IOException
-
parseNextPatch
public static SVNPatch parseNextPatch(SVNPatchFileStream patchFile) throws SVNException, IOException Return the next PATCH in PATCH_FILE. If no patch can be found, set PATCH to NULL.- Throws:
SVNException
IOException
-