Class SVNPatch
java.lang.Object
org.tmatesoft.svn.core.internal.wc.patch.SVNPatch
public class SVNPatch
extends java.lang.Object
Data type to manage parsing of patches.
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final java.lang.Stringprivate java.util.ListAn array containing an svn_hunk_t object for each hunk parsed from the patch.static final java.lang.Stringprivate java.io.Fileprivate java.io.FileThe old and new file names as retrieved from the patch file.private SVNPatchFileStreamThe patch file itself.private java.io.FilePath to the patch file.static final java.lang.String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()java.util.ListgetHunks()java.io.Filejava.io.Filejava.io.FilegetPath()static SVNPatchparseNextPatch(SVNPatchFileStream patchFile) Return the next PATCH in PATCH_FILE.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
MINUS
public static final java.lang.String MINUS- See Also:
-
PLUS
public static final java.lang.String PLUS- See Also:
-
ATAT
public static final java.lang.String ATAT- See Also:
-
path
private java.io.File pathPath to the patch file. -
patchFile
The patch file itself. -
oldFilename
private java.io.File oldFilenameThe 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
private java.io.File newFilename -
hunks
private java.util.List hunksAn array containing an svn_hunk_t object for each hunk parsed from the patch.
-
-
Constructor Details
-
SVNPatch
public SVNPatch()
-
-
Method Details
-
getPath
public java.io.File getPath() -
getPatchFile
-
getOldFilename
public java.io.File getOldFilename() -
getNewFilename
public java.io.File getNewFilename() -
getHunks
public java.util.List getHunks() -
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
parseNextPatch
public static SVNPatch parseNextPatch(SVNPatchFileStream patchFile) throws SVNException, java.io.IOException Return the next PATCH in PATCH_FILE. If no patch can be found, set PATCH to NULL.- Throws:
SVNExceptionjava.io.IOException
-