|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alchar.jdtk.Client
public class Client
This class provides the client end of the client/server API for the DECtalk software speech synthesizer. It provides the facilities for sending requests, receiving responses, and processing callback messages.
| Constructor Summary | |
|---|---|
Client(DECtalk dtk)
Create a new Client object. |
|
| Method Summary | |
|---|---|
void |
addResponse(String response)
Add a response to the receive queue for processing. |
void |
close()
Handle a close connection event. |
String[] |
sendRequest(String cmd,
String args)
Send a request to the DECtalk server. |
void |
terminate()
Handle a request to terminate the communication. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Client(DECtalk dtk)
throws DECtalkException
DECtalkException - If fail to connect| Method Detail |
|---|
public void addResponse(String response)
response - Responsepublic void terminate()
public void close()
public String[] sendRequest(String cmd,
String args)
throws DECtalkException
cmd - Commandargs - Argument string
DECtalkException - if the operation fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2007-2009 Kris Van Hees. All Rights Reserved.