class TextTelephony implements Telephony {

    @Override
    public void record(final SpokenInput input,
            final CallControlProperties props)
            throws NoresourceError, IOException {
        if (sentHungup) {
            throw new NoresourceError("connection disconnected");
        }
        if (!(input instanceof TextSpokenInput)) {
            throw new IOException("input does not support texts!");
        }
        fireRecordStarted();
        final TextSpokenInput textInput = (TextSpokenInput) input;
        receiver.setSpokenInput(textInput);
        sender.sendExpectingInput();
    }

    public  TextTelephony();

}