Class SVNPatchHunk
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.patch.SVNPatchHunk
-
public class SVNPatchHunk extends java.lang.Object
A single hunk inside a patch.- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SVNPatchHunk.SVNPatchHunkRange
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator
COMPARATOR
Compare function for sorting hunks after parsing.
-
Constructor Summary
Constructors Constructor Description SVNPatchHunk()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
SVNPatchFileStream
getDiffText()
long
getLeadingContext()
SVNPatchHunk.SVNPatchHunkRange
getModified()
SVNPatchFileStream
getModifiedText()
SVNPatchHunk.SVNPatchHunkRange
getOriginal()
SVNPatchFileStream
getOriginalText()
long
getTrailingContext()
static SVNPatchHunk
parseNextHunk(SVNPatch patch)
Return the next HUNK from a PATCH, using STREAM to read data from the patch file.
-
-
-
Method Detail
-
getDiffText
public SVNPatchFileStream getDiffText()
-
getOriginalText
public SVNPatchFileStream getOriginalText()
-
getModifiedText
public SVNPatchFileStream getModifiedText()
-
getOriginal
public SVNPatchHunk.SVNPatchHunkRange getOriginal()
-
getModified
public SVNPatchHunk.SVNPatchHunkRange getModified()
-
getLeadingContext
public long getLeadingContext()
-
getTrailingContext
public long getTrailingContext()
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
parseNextHunk
public static SVNPatchHunk parseNextHunk(SVNPatch patch) throws java.io.IOException, SVNException
Return the next HUNK from a PATCH, using STREAM to read data from the patch file. If no hunk can be found, set HUNK to NULL.- Throws:
java.io.IOException
SVNException
-
-