kom.news
Class NewsUtil

java.lang.Object
  |
  +--kom.news.NewsUtil

public class NewsUtil
extends java.lang.Object


Constructor Summary
NewsUtil()
           
 
Method Summary
(package private) static int countDelimiters(java.lang.StringBuffer sb, char dlm)
          Counts number of delimiters in a StringBuffer
(package private) static int countDelimiters(java.lang.String s, java.lang.String dlm)
          Counts number of delimiters in a string
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

NewsUtil

public NewsUtil()
Method Detail

countDelimiters

static int countDelimiters(java.lang.String s,
                           java.lang.String dlm)
Counts number of delimiters in a string
Parameters:
s - String
dlm - Delimiter string
Returns:
number of occurrences of dlm in s

countDelimiters

static int countDelimiters(java.lang.StringBuffer sb,
                           char dlm)
Counts number of delimiters in a StringBuffer
Parameters:
sb - StringBuffer
dlm - Delimiter character
Returns:
number of occurrences of dlm in sb