public class SVNPatch
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATAT |
private java.util.List |
hunks
An array containing an svn_hunk_t object for each hunk parsed from the
patch.
|
static java.lang.String |
MINUS |
private java.io.File |
newFilename |
private java.io.File |
oldFilename
The old and new file names as retrieved from the patch file.
|
private SVNPatchFileStream |
patchFile
The patch file itself.
|
private java.io.File |
path
Path to the patch file.
|
static java.lang.String |
PLUS |
Constructor and Description |
---|
SVNPatch() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.List |
getHunks() |
java.io.File |
getNewFilename() |
java.io.File |
getOldFilename() |
SVNPatchFileStream |
getPatchFile() |
java.io.File |
getPath() |
static SVNPatch |
parseNextPatch(SVNPatchFileStream patchFile)
Return the next PATCH in PATCH_FILE.
|
public static final java.lang.String MINUS
public static final java.lang.String PLUS
public static final java.lang.String ATAT
private java.io.File path
private SVNPatchFileStream patchFile
private java.io.File oldFilename
private java.io.File newFilename
private java.util.List hunks
public java.io.File getPath()
public SVNPatchFileStream getPatchFile()
public java.io.File getOldFilename()
public java.io.File getNewFilename()
public java.util.List getHunks()
public void close() throws java.io.IOException
java.io.IOException
public static SVNPatch parseNextPatch(SVNPatchFileStream patchFile) throws SVNException, java.io.IOException
SVNException
java.io.IOException