org.jvoicexml.implementation.text
Class TextTelephony

java.lang.Object
  extended by org.jvoicexml.implementation.text.TextTelephony
All Implemented Interfaces:
ExternalResource, ObservableTelephony, Telephony, RemoteConnectable

public final class TextTelephony
extends Object
implements Telephony, ObservableTelephony

Text based implementation of Telephony.

Since:
0.6
Version:
$Revision: 2913 $
Author:
Dirk Schnelle-Walka

Constructor Summary
TextTelephony()
          Constructs a new object.
 
Method Summary
 void activate()
          
 void addListener(TelephonyListener callListener)
          
 void close()
          
 void connect(ConnectionInformation info)
          
 void disconnect(ConnectionInformation client)
          
 AudioFormat getRecordingAudioFormat()
          
 String getType()
          
 boolean isBusy()
          
 void open()
          
 void passivate()
          
 void play(SynthesizedOutput output, CallControlProperties props)
          
 void record(SpokenInput input, CallControlProperties props)
          
 void removeListener(TelephonyListener callListener)
          
 void startRecording(SpokenInput input, OutputStream stream, CallControlProperties props)
          
 void stopPlay()
          
 void stopRecording()
          
 void transfer(String dest)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextTelephony

public TextTelephony()
Constructs a new object.

Method Detail

play

public void play(SynthesizedOutput output,
                 CallControlProperties props)
          throws NoresourceError,
                 IOException

Specified by:
play in interface Telephony
Throws:
NoresourceError
IOException

stopPlay

public void stopPlay()
              throws NoresourceError

Specified by:
stopPlay in interface Telephony
Throws:
NoresourceError

record

public void record(SpokenInput input,
                   CallControlProperties props)
            throws NoresourceError,
                   IOException

Specified by:
record in interface Telephony
Throws:
NoresourceError
IOException

getRecordingAudioFormat

public AudioFormat getRecordingAudioFormat()

Specified by:
getRecordingAudioFormat in interface Telephony
Returns:
null since we do not support audio recordings.

startRecording

public void startRecording(SpokenInput input,
                           OutputStream stream,
                           CallControlProperties props)
                    throws NoresourceError,
                           IOException

Specified by:
startRecording in interface Telephony
Throws:
NoresourceError
IOException

stopRecording

public void stopRecording()
                   throws NoresourceError

Specified by:
stopRecording in interface Telephony
Throws:
NoresourceError

transfer

public void transfer(String dest)
              throws NoresourceError

Specified by:
transfer in interface Telephony
Throws:
NoresourceError

activate

public void activate()

Specified by:
activate in interface ExternalResource

close

public void close()

Specified by:
close in interface ExternalResource

getType

public String getType()

Specified by:
getType in interface ExternalResource

isBusy

public boolean isBusy()

Specified by:
isBusy in interface ExternalResource

open

public void open()
          throws NoresourceError

Specified by:
open in interface ExternalResource
Throws:
NoresourceError

passivate

public void passivate()

Specified by:
passivate in interface ExternalResource

connect

public void connect(ConnectionInformation info)
             throws IOException

Specified by:
connect in interface RemoteConnectable
Throws:
IOException

disconnect

public void disconnect(ConnectionInformation client)

Specified by:
disconnect in interface RemoteConnectable

addListener

public void addListener(TelephonyListener callListener)

Specified by:
addListener in interface ObservableTelephony

removeListener

public void removeListener(TelephonyListener callListener)

Specified by:
removeListener in interface ObservableTelephony


Copyright © 2005-2009JVoiceXML group.