Class SVNPatch


  • public class SVNPatch
    extends java.lang.Object
    Data type to manage parsing of patches.
    Version:
    1.3
    • Field Detail

      • path

        private java.io.File path
        Path to the patch file.
      • oldFilename

        private java.io.File 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

        private java.io.File newFilename
      • hunks

        private java.util.List hunks
        An array containing an svn_hunk_t object for each hunk parsed from the patch.
    • Constructor Detail

      • SVNPatch

        public SVNPatch()
    • Method Detail

      • getPath

        public java.io.File getPath()
      • 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:
        SVNException
        java.io.IOException