Package twitter4j
Class CharacterUtil
java.lang.Object
twitter4j.CharacterUtil
- Since:
- Twitter4J 2.1.2
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Counts the length of the tweetstatic boolean
Returns true if the length of the string is exceeding length limitation
-
Field Details
-
MAX_TWEET_LENGTH
public static final int MAX_TWEET_LENGTHmax tweet length- See Also:
-
-
Method Details
-
count
Counts the length of the tweet- Parameters:
text
- tweet to be counted- Returns:
- the length of the tweet
-
isExceedingLengthLimitation
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
-