Class TextDifferToHTML
java.lang.Object
com.kazurayam.materialstore.base.reduce.differ.AbstractTextDiffer
com.kazurayam.materialstore.base.reduce.differ.TextDifferToHTML
- All Implemented Interfaces:
Differ
,HTMLPrettyPrintingCapable
public final class TextDifferToHTML
extends AbstractTextDiffer
implements Differ, HTMLPrettyPrintingCapable
compiles a HTML report of diff of 2 text files
presents the diff information in a HTML like the GitHub History split view.
uses java-diff-utils on GitHub https://github.com/java-diff-utils/java-diff-utils to make diff of 2 texts
-
Field Summary
Fields inherited from class com.kazurayam.materialstore.base.reduce.differ.AbstractTextDiffer
NEW_TAG, OLD_TAG, store
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enablePrettyPrinting
(boolean enabled) boolean
makeTextDiffContent
(Store store, Material left, Material right, Charset charset) Methods inherited from class com.kazurayam.materialstore.base.reduce.differ.AbstractTextDiffer
readAllLines, readMaterial, setCharset, splitStringWithOldNewTags, stuffDiff
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kazurayam.materialstore.base.reduce.differ.Differ
makeNoMaterialFoundMaterial, readImage, stuffDiff, toByteArray
-
Constructor Details
-
TextDifferToHTML
-
-
Method Details
-
enablePrettyPrinting
public void enablePrettyPrinting(boolean enabled) - Specified by:
enablePrettyPrinting
in interfaceHTMLPrettyPrintingCapable
-
isPrettyPrintingEnabled
public boolean isPrettyPrintingEnabled()- Specified by:
isPrettyPrintingEnabled
in interfaceHTMLPrettyPrintingCapable
-
makeTextDiffContent
public TextDiffContent makeTextDiffContent(Store store, Material left, Material right, Charset charset) throws MaterialstoreException - Specified by:
makeTextDiffContent
in classAbstractTextDiffer
- Throws:
MaterialstoreException
-