public final class DiffParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DiffParser.Differential
A description of the differences of the contents of two files.
|
static class |
DiffParser.Hunk
Representation of a "diff hunk", i.e. the description of textual changes in a sequence of lines.
|
static class |
DiffParser.LineChange
Representation of one line in a DIFF document.
|
Modifier and Type | Method and Description |
---|---|
static List<DiffParser.Differential> |
parse(File file,
Charset charset)
Parses a DIFF document from a file; a DIFF document generally contains differentials for one or more files.
|
static List<DiffParser.Differential> |
parse(Reader r)
Parses a DIFF document; a DIFF document generally contains differentials for one or more files.
|
public static List<DiffParser.Differential> parse(File file, Charset charset) throws IOException, de.unkrig.commons.text.StringStream.UnexpectedElementException
de.unkrig.commons.text.StringStream.UnexpectedElementException
- The contents read from the file
is not a valid DIFF documentIOException
parse(Reader)
public static List<DiffParser.Differential> parse(Reader r) throws DiffException, IOException, de.unkrig.commons.text.StringStream.UnexpectedElementException
de.unkrig.commons.text.StringStream.UnexpectedElementException
- The contents read from r
is not a valid DIFF documentDiffException
IOException
Copyright © 2022 Arno Unkrig. All rights reserved.