| Package | Description |
|---|---|
| com.twitter.twittertext |
| Modifier and Type | Method and Description |
|---|---|
List<Extractor.Entity> |
Extractor.extractCashtagsWithIndices(String text)
Extract $cashtag references from Tweet text.
|
List<Extractor.Entity> |
Extractor.extractEntitiesWithIndices(String text)
Extract URLs, @mentions, lists and #hashtag from a given text/tweet.
|
List<Extractor.Entity> |
Extractor.extractHashtagsWithIndices(String text)
Extract #hashtag references from Tweet text.
|
List<Extractor.Entity> |
Extractor.extractMentionedScreennamesWithIndices(String text)
Extract @username references from Tweet text.
|
List<Extractor.Entity> |
Extractor.extractMentionsOrListsWithIndices(String text)
Extract @username and an optional list reference from Tweet text.
|
List<Extractor.Entity> |
Extractor.extractURLsWithIndices(String text)
Extract URL references from Tweet text.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Autolink.linkToCashtag(Extractor.Entity entity,
String text,
StringBuilder builder) |
void |
Autolink.linkToHashtag(Extractor.Entity entity,
String text,
StringBuilder builder) |
void |
Autolink.linkToMentionAndList(Extractor.Entity entity,
String text,
StringBuilder builder) |
void |
Autolink.linkToText(Extractor.Entity entity,
CharSequence originalText,
Map<String,String> attributes,
StringBuilder builder) |
void |
Autolink.linkToTextWithSymbol(Extractor.Entity entity,
CharSequence symbol,
CharSequence originalText,
Map<String,String> attributes,
StringBuilder builder) |
void |
Autolink.linkToURL(Extractor.Entity entity,
String text,
StringBuilder builder) |
CharSequence |
Autolink.LinkTextModifier.modify(Extractor.Entity entity,
CharSequence text)
This lets you modify the text depending on the entity.
|
void |
Autolink.LinkAttributeModifier.modify(Extractor.Entity entity,
Map<String,String> attributes)
This lets you modify the attributes depending on the entity.
|
| Modifier and Type | Method and Description |
|---|---|
String |
Autolink.autoLinkEntities(String text,
List<Extractor.Entity> entities) |
void |
Extractor.modifyIndicesFromUnicodeToUTF16(String text,
List<Extractor.Entity> entities)
Modify Unicode-based indices of the entities to UTF-16 based indices.
|
void |
Extractor.modifyIndicesFromUTF16ToUnicode(String text,
List<Extractor.Entity> entities)
Modify UTF-16-based indices of the entities to Unicode-based indices.
|
Copyright © 2018. All rights reserved.