twitter4j.util
Class CharacterUtil

java.lang.Object
  extended by twitter4j.util.CharacterUtil

public final class CharacterUtil
extends java.lang.Object

Since:
Twitter4J 2.1.2
Author:
Yusuke Yamamoto - yusuke at mac.com

Constructor Summary
private CharacterUtil()
           
 
Method Summary
static int count(java.lang.String text)
          Counts the length of the tweet
static boolean isExceedingLengthLimitation(java.lang.String text)
          Returns true if the length of the string is exceeding length limitation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterUtil

private CharacterUtil()
Method Detail

count

public static int count(java.lang.String text)
Counts the length of the tweet

Parameters:
text - tweet to be counted
Returns:
the length of the tweet

isExceedingLengthLimitation

public static boolean isExceedingLengthLimitation(java.lang.String text)
Returns true if the length of the string is exceeding length limitation

Parameters:
text - String to be examined
Returns:
if the length of the string is exceeding length limitation