public abstract class DirectionEstimator extends 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(String str)
Estimates the direction of a plain-text string.
|
HasDirection.Direction |
estimateDirection(String str,
boolean isHtml)
Estimates the direction of a string.
|
public abstract HasDirection.Direction estimateDirection(String str)
str
- The string to check.str
's estimated direction.public HasDirection.Direction estimateDirection(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.Copyright © 2018. All rights reserved.