| Package | Description |
|---|---|
| com.twitter.twittertext |
| Modifier and Type | Field and Description |
|---|---|
static TwitterTextConfiguration |
TwitterTextParser.TWITTER_TEXT_DEFAULT_CONFIG |
static TwitterTextConfiguration |
TwitterTextParser.TWITTER_TEXT_WEIGHTED_CHAR_COUNT_CONFIG
v2.json has the following unicode code point blocks defined
0x0000 (0) - 0x10FF (4351) Basic Latin to Georgian block: Weight 100
0x2000 (8192) - 0x200D (8205) Spaces in the General Punctuation Block: Weight 100
0x2010 (8208) - 0x201F (8223) Hyphens & Quotes in the General Punctuation Block: Weight 100
0x2032 (8242) - 0x2037 (8247) Quotes in the General Punctuation Block: Weight 100
|
| Modifier and Type | Method and Description |
|---|---|
static TwitterTextConfiguration |
TwitterTextConfiguration.configurationFromJson(String json,
boolean isResource)
Create a
TwitterTextConfiguration object from JSON
The JSON can have the following properties
version (required, integer, min value 0)
maxWeightedTweetLength (required, integer, min value 0)
scale (required, integer, min value 1)
defaultWeight (required, integer, min value 0)
transformedURLLength (integer, min value 0)
ranges (array of range items)
A range item has the following properties:
start (required, integer, min value 0)
end (required, integer, min value 0)
weight (required, integer, min value 0) |
| Modifier and Type | Method and Description |
|---|---|
static TwitterTextParseResults |
TwitterTextParser.parseTweet(String tweet,
TwitterTextConfiguration config)
Parses a given tweet text with the given
TwitterTextConfiguration |
Copyright © 2018. All rights reserved.