org.metastatic.callbacks

Class ConsoleCallbackHandler

Implemented Interfaces:
CallbackHandler

public class ConsoleCallbackHandler
extends AbstractCallbackHandler

An implementation of CallbackHandler that reads and writes information to and from System.in and System.out.

Field Summary

Fields inherited from class org.metastatic.callbacks.AbstractCallbackHandler

messages

Constructor Summary

ConsoleCallbackHandler()

Method Summary

protected void
handleChoice(ChoiceCallback c)
protected void
handleConfirmation(ConfirmationCallback c)
protected void
handleLanguage(LanguageCallback c)
protected void
handleName(NameCallback c)
protected void
handlePassword(PasswordCallback c)
protected void
handleTextInput(TextInputCallback c)
protected void
handleTextOutput(TextOutputCallback c)

Methods inherited from class org.metastatic.callbacks.AbstractCallbackHandler

handle, handleChoice, handleConfirmation, handleLanguage, handleName, handleOther, handlePassword, handleTextInput, handleTextOutput

Constructor Details

ConsoleCallbackHandler

public ConsoleCallbackHandler()

Method Details

handleChoice

protected void handleChoice(ChoiceCallback c)
            throws IOException
Overrides:
handleChoice in interface AbstractCallbackHandler

handleConfirmation

protected void handleConfirmation(ConfirmationCallback c)
            throws IOException
Overrides:
handleConfirmation in interface AbstractCallbackHandler

handleLanguage

protected void handleLanguage(LanguageCallback c)
            throws IOException
Overrides:
handleLanguage in interface AbstractCallbackHandler

handleName

protected void handleName(NameCallback c)
            throws IOException
Overrides:
handleName in interface AbstractCallbackHandler

handlePassword

protected void handlePassword(PasswordCallback c)
            throws IOException
Overrides:
handlePassword in interface AbstractCallbackHandler

handleTextInput

protected void handleTextInput(TextInputCallback c)
            throws IOException
Overrides:
handleTextInput in interface AbstractCallbackHandler

handleTextOutput

protected void handleTextOutput(TextOutputCallback c)
Overrides:
handleTextOutput in interface AbstractCallbackHandler