Class DefaultSummariser
java.lang.Object
com.atlassian.confluence.content.render.xhtml.storage.DefaultSummariser
- All Implemented Interfaces:
Summariser
This default implementation is a front for various existing util classes in Confluence.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultSummariser
public DefaultSummariser()
-
-
Method Details
-
summarise
Make use of various existing Confluence utilities to summarise the supplied XHTML. If the process fails then the supplied parameter will be returned unchanged.- Specified by:
summarise
in interfaceSummariser
- Parameters:
xhtml
- the content to be summarised.- Returns:
- a summary of the supplied XHTML content which is no longer than 255 characters.
-
summarise
Description copied from interface:Summariser
Like but provides more control over the summary process.- Specified by:
summarise
in interfaceSummariser
- Parameters:
xhtml
- the content to be summarised.maxLength
- the maximum length of String to returnellipses
- if true then truncated text will be ended with '...'.- Returns:
- the summarised version of the xhtml parameter
-