Package twitter4j

Class CharacterUtil

java.lang.Object
twitter4j.CharacterUtil

public final class CharacterUtil extends Object
Since:
Twitter4J 2.1.2
  • Field Details

    • MAX_TWEET_LENGTH

      public static final int MAX_TWEET_LENGTH
      max tweet length
      See Also:
  • Method Details

    • count

      public static int count(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(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