|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.content.render.xhtml.storage.DefaultSummariser
public class DefaultSummariser
This default implementation is a front for various existing util classes in Confluence.
Constructor Summary | |
---|---|
DefaultSummariser()
|
Method Summary | |
---|---|
java.lang.String |
summarise(java.lang.String xhtml)
Make use of various existing Confluence utilities to summarise the supplied XHTML. |
java.lang.String |
summarise(java.lang.String xhtml,
int maxLength,
boolean ellipses)
Like Summariser.summarise(String) but provides more control over the summary process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSummariser()
Method Detail |
---|
public java.lang.String summarise(java.lang.String xhtml)
summarise
in interface Summariser
xhtml
- the content to be summarised.
public java.lang.String summarise(java.lang.String xhtml, int maxLength, boolean ellipses)
Summariser
Summariser.summarise(String)
but provides more control over the summary process.
summarise
in interface Summariser
xhtml
- the content to be summarised.maxLength
- the maximum length of String to returnellipses
- if true then truncated text will be ended with '...'.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |