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 Stringprivate ListAn array containing an svn_hunk_t object for each hunk parsed from the patch.static final Stringprivate Fileprivate FileThe old and new file names as retrieved from the patch file.private SVNPatchFileStreamThe patch file itself.private FilePath to the patch file.static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getHunks()getPath()static SVNPatchparseNextPatch(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:
SVNExceptionIOException
-