public class Validator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_TWEET_LENGTH |
protected int |
shortUrlLength |
protected int |
shortUrlLengthHttps |
Constructor and Description |
---|
Validator() |
Modifier and Type | Method and Description |
---|---|
int |
getShortUrlLength() |
int |
getShortUrlLengthHttps() |
int |
getTweetLength(java.lang.String tweetText)
Deprecated.
Use TwitterTextParser
|
static boolean |
hasInvalidCharacters(java.lang.String text) |
boolean |
isValidTweet(java.lang.String text)
Deprecated.
Use TwitterTextParser
|
void |
setShortUrlLength(int shortUrlLength) |
void |
setShortUrlLengthHttps(int shortUrlLengthHttps) |
public static final int MAX_TWEET_LENGTH
protected int shortUrlLength
protected int shortUrlLengthHttps
@Deprecated public int getTweetLength(java.lang.String tweetText)
tweetText
- the source to mark as modified.@Deprecated public boolean isValidTweet(java.lang.String text)
public static boolean hasInvalidCharacters(java.lang.String text)
public int getShortUrlLength()
public void setShortUrlLength(int shortUrlLength)
public int getShortUrlLengthHttps()
public void setShortUrlLengthHttps(int shortUrlLengthHttps)