public class BasicTextDecoder extends Object implements TextDecoder
| Modifier and Type | Field and Description | 
|---|---|
| protected String | decodedText | 
| protected long | lastUpdateTime | 
| protected String | text | 
| Constructor and Description | 
|---|
| BasicTextDecoder() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected String | decode(String textToDecode)Decode the text. | 
| 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. | 
protected String decodedText
protected long lastUpdateTime
protected String text
protected String decode(String textToDecode)
textToDecode - The text to decode.public String getDecodedText()
getDecodedText in interface TextDecoderpublic long getLastUpdateTime()
TextDecoder.getDecodedText() is called. An application should call
 TextDecoder.getDecodedText(), and then call this method to compare the timestamp with some previous timestamp to
 determine if the decoded text has changed since TextDecoder.getDecodedText() was last called.getLastUpdateTime in interface TextDecoderSystem.currentTimeMillis()) at which the decoded text last changed.
         Returns zero if called before the text is decoded.public void setText(String input)
setText in interface TextDecoderinput - Text to decode.