This library seems to do the trick: google-diff-match-patch. It can create a patch string from differences and allow to reapply the patch.
edit: Another solution might be to https://code.google.com/p/java-diff-utils/
More Related Contents:
- How to compare and merge two text files?
- Is there a Java library that can “diff” two Objects?
- The constructor JSONArray(Object[]) is undefined
- JAVA Looping a formula
- how to create java methods [closed]
- Exception in thread “main” java.lang.IndexOutOfBoundsException: Index: 6, Size: 6 [duplicate]
- Parsing JSON Object in Java [duplicate]
- Java multi-threading & Safe Publication [closed]
- Difference between _JAVA_OPTIONS, JAVA_TOOL_OPTIONS and JAVA_OPTS
- JDBC Class.forName vs DriverManager.registerDriver
- remove() on List created by Arrays.asList() throws UnsupportedOperationException
- How do I format a String in an email so Outlook will print the line breaks?
- How to find the currently running applications programmatically in Android?
- What is the best way get the symmetric difference between two sets in java?
- What does “atomic” mean in programming?
- Suppress deprecated import warning in Java
- Javamail Could not convert socket to TLS GMail
- Spring classpath prefix difference
- Impossible to make a cached thread pool with a size limit?
- Whats an easy way to totally ignore ssl with java url connections?
- Strings written to file do not preserve line breaks
- ‘UnexpectedTagNameException’ and Element should have been “select” but was “div” error using ‘Select’ function through Selenium java
- How to convert a java program to daemon with jsvc?
- InputStream from a URL
- java.security.NoSuchAlgorithmException:Cannot find any provider supporting AES/ECB/PKCS7PADDING
- Where to get “UTF-8” string literal in Java?
- getting result set into DTO with native SQL Query in Hibernate
- Specifying order of execution in JUnit test case [duplicate]
- Java – How to visually center a specific string (not just a font) in a rectangle
- HTTP Status 500 – Error instantiating servlet class pkg.coreServlet