org.jvoicexml.client.text
Class ConsoleClient

java.lang.Object
  extended by org.jvoicexml.client.text.ConsoleClient
All Implemented Interfaces:
TextListener

public final class ConsoleClient
extends Object
implements TextListener

Console client for JVoiceXML.

Since:
0.7.5
Version:
$Revision: $
Author:
Dirk Schnelle-Walka

Method Summary
 void connected(InetSocketAddress remote)
          Notification that a connection with the server has been established.
 void disconnected()
          Notification about a disconnect from the server.
static void main(String[] args)
          Start routine.
 void outputSsml(org.jvoicexml.xml.ssml.SsmlDocument document)
          Notification that an SSML document has arrived.
 void outputText(String text)
          Notification that a portion of text has arrived.
 String readLine()
          Read an input from the command line.
 void started()
          Notification that the server thread has started.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

started

public void started()
Notification that the server thread has started.

Specified by:
started in interface TextListener

connected

public void connected(InetSocketAddress remote)
Notification that a connection with the server has been established.

Specified by:
connected in interface TextListener
Parameters:
remote - address of the server.

outputText

public void outputText(String text)
Notification that a portion of text has arrived.

Specified by:
outputText in interface TextListener
Parameters:
text - the received text.

outputSsml

public void outputSsml(org.jvoicexml.xml.ssml.SsmlDocument document)
Notification that an SSML document has arrived.

Specified by:
outputSsml in interface TextListener
Parameters:
document - the received SSML document.

disconnected

public void disconnected()
Notification about a disconnect from the server.

Specified by:
disconnected in interface TextListener

readLine

public String readLine()
                throws IOException
Read an input from the command line.

Returns:
DTMF from the command line.
Throws:
IOException - error reading the next line

main

public static void main(String[] args)
Start routine.

Parameters:
args - URI of the application to call


Copyright © 2005-2009JVoiceXML group.