Package tech.ikora.diff.parser
Class DiffParser
- java.lang.Object
-
- tech.ikora.diff.parser.DiffParser
-
public class DiffParser extends Object
-
-
Constructor Summary
Constructors Constructor Description DiffParser()
-
Method Summary
Modifier and Type Method Description List<Patch>parse(InputStream in)List<Patch>parse(String diff)DiffParsersetNewPrefix(String newPrefix)DiffParsersetOldPrefix(String oldPrefix)
-
-
-
Method Detail
-
setOldPrefix
public DiffParser setOldPrefix(String oldPrefix)
-
setNewPrefix
public DiffParser setNewPrefix(String newPrefix)
-
parse
public List<Patch> parse(String diff) throws IOException, MalformedDiffException
- Throws:
IOExceptionMalformedDiffException
-
parse
public List<Patch> parse(InputStream in) throws IOException, MalformedDiffException
- Throws:
IOExceptionMalformedDiffException
-
-