Package fr.becpg.repo.helper
Class LargeTextHelper
java.lang.Object
fr.becpg.repo.helper.LargeTextHelper
LargeTextHelper class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTextDiffs(String string1, String string2) createTextDiffs.static final Stringelipse.static final Stringelipse.static voidelipse(org.alfresco.service.cmr.repository.MLText mlText) elipse.static final StringelipseHtml(String value, int textLength) HTML-aware truncation.static StringhtmlDiff.
-
Field Details
-
TEXT_SIZE_LIMIT
public static final int TEXT_SIZE_LIMITConstantTEXT_SIZE_LIMIT=50000- See Also:
-
-
Constructor Details
-
LargeTextHelper
private LargeTextHelper()Constructor for LargeTextHelper.
-
-
Method Details
-
elipse
elipse.
-
elipse
elipse.
-
elipseHtml
HTML-aware truncation. When the value is an HTML table, the cut is done after the last complete row (</tr>) and the table is closed, so the rendered output stays valid instead of being broken mid-tag. Otherwise falls back to
elipse(String, int). -
createTextDiffs
createTextDiffs.
-
elipse
public static void elipse(org.alfresco.service.cmr.repository.MLText mlText) elipse.
- Parameters:
mlText- aMLTextobject
-
htmlDiff
htmlDiff.
-