public abstract class DirectionEstimator
extends java.lang.Object
Constructor and Description |
---|
DirectionEstimator() |
Modifier and Type | Method and Description |
---|---|
HasDirection.Direction |
estimateDirection(SafeHtml html)
Estimates the direction of a SafeHtml.
|
abstract HasDirection.Direction |
estimateDirection(java.lang.String str)
Estimates the direction of a plain-text string.
|
HasDirection.Direction |
estimateDirection(java.lang.String str,
boolean isHtml)
Estimates the direction of a string.
|
public abstract HasDirection.Direction estimateDirection(java.lang.String str)
str
- The string to check.str
's estimated direction.public HasDirection.Direction estimateDirection(java.lang.String str, boolean isHtml)
str
- The string to check.isHtml
- Whether str
is HTML / HTML-escaped. false
means that str
is plain-text.str
's estimated direction.public HasDirection.Direction estimateDirection(SafeHtml html)
html
- The string to check.html
's estimated direction.