public interface TextDecoder
Modifier and Type | Method and Description |
---|---|
String |
getDecodedText()
Get the decoded text.
|
long |
getLastUpdateTime()
Get the time at which the decoded text last changed.
|
void |
setText(String input)
Set the input text which the decoder will process.
|
String getDecodedText()
long getLastUpdateTime()
getDecodedText()
is called. An application should call
getDecodedText()
, and then call this method to compare the timestamp with some previous timestamp to
determine if the decoded text has changed since getDecodedText()
was last called.System.currentTimeMillis()
) at which the decoded text last changed.
Returns zero if called before the text is decoded.void setText(String input)
input
- Text to decode.