public interface TextDecoder
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDecodedText()
Get the decoded text.
|
long |
getLastUpdateTime()
Get the time at which the decoded text last changed.
|
void |
setText(java.lang.String input)
Set the input text which the decoder will process.
|
java.lang.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(java.lang.String input)
input
- Text to decode.