Class SVNPatchHunk
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.patch.SVNPatchHunk
-
public class SVNPatchHunk extends java.lang.ObjectA single hunk inside a patch.- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSVNPatchHunk.SVNPatchHunkRange
-
Field Summary
Fields Modifier and Type Field Description static java.util.ComparatorCOMPARATORCompare 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 voidclose()SVNPatchFileStreamgetDiffText()longgetLeadingContext()SVNPatchHunk.SVNPatchHunkRangegetModified()SVNPatchFileStreamgetModifiedText()SVNPatchHunk.SVNPatchHunkRangegetOriginal()SVNPatchFileStreamgetOriginalText()longgetTrailingContext()static SVNPatchHunkparseNextHunk(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.IOExceptionSVNException
-
-