public class UnifiedDiffParser extends Object implements DiffParser
Diff data structure.
An example of a unified diff this parser can handle is the following:
Modified: trunk/test1.txt =================================================================== --- /trunk/test1.txt 2013-10-23 19:41:56 UTC (rev 46) +++ /trunk/test1.txt 2013-10-23 19:44:39 UTC (rev 47)
| Constructor and Description |
|---|
UnifiedDiffParser() |
| Modifier and Type | Method and Description |
|---|---|
List<Diff> |
parse(byte[] bytes)
Constructs a list of Diffs from a textual byte array.
|
List<Diff> |
parse(File file)
Constructs a list of Diffs from a textual File
|
List<Diff> |
parse(InputStream in)
Constructs a list of Diffs from a textual InputStream.
|
public List<Diff> parse(InputStream in)
DiffParserparse in interface DiffParserin - the input stream to parsepublic List<Diff> parse(byte[] bytes)
DiffParserparse in interface DiffParserbytes - the byte array to parsepublic List<Diff> parse(File file) throws IOException
DiffParserparse in interface DiffParserfile - the file to parseIOExceptionCopyright © 2016. All rights reserved.