org.blojsom.plugin.statistics
Class WordCountPlugin.WordCountHelper

java.lang.Object
  extended byorg.blojsom.plugin.statistics.WordCountPlugin.WordCountHelper
Enclosing class:
WordCountPlugin

public class WordCountPlugin.WordCountHelper
extends java.lang.Object

Class to handle word count for text in templates


Constructor Summary
WordCountPlugin.WordCountHelper()
           
 
Method Summary
 java.lang.Integer countWords(java.lang.String text)
          Count the number of words in a piece of text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordCountPlugin.WordCountHelper

public WordCountPlugin.WordCountHelper()
Method Detail

countWords

public java.lang.Integer countWords(java.lang.String text)
Count the number of words in a piece of text

Parameters:
text - Text
Returns:
# of words in text, 0 if text is null or blank