Class AbstractTextDiffer
java.lang.Object
com.kazurayam.materialstore.base.reduce.differ.AbstractTextDiffer
- All Implemented Interfaces:
Differ
- Direct Known Subclasses:
TextDifferToHTML
,TextDifferToMarkdown
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract TextDiffContent
makeTextDiffContent
(Store store, Material original, Material revised, Charset charset) readAllLines
(String longText) static String
readMaterial
(Store store, Material material, Charset charset) void
setCharset
(Charset chs) stuffDiff
(MaterialProduct mProduct) 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, toByteArray
-
Field Details
-
store
-
OLD_TAG
- See Also:
-
NEW_TAG
- See Also:
-
-
Constructor Details
-
AbstractTextDiffer
-
-
Method Details
-
setCharset
-
stuffDiff
- Specified by:
stuffDiff
in interfaceDiffer
- Throws:
MaterialstoreException
-
makeTextDiffContent
public abstract TextDiffContent makeTextDiffContent(Store store, Material original, Material revised, Charset charset) throws MaterialstoreException - Throws:
MaterialstoreException
-
readAllLines
- Throws:
MaterialstoreException
-
readMaterial
public static String readMaterial(Store store, Material material, Charset charset) throws MaterialstoreException - Throws:
MaterialstoreException
-
splitStringWithOldNewTags
-