public final class DesktopTelephonySupportFactory extends java.lang.Object implements ResourceFactory<Telephony>
ResourceFactory
for the Telephony interface for desktop/like environments.| Constructor and Description |
|---|
DesktopTelephonySupportFactory()
Constructs a new object.
|
| Modifier and Type | Method and Description |
|---|---|
Telephony |
createResource()
Factory method to create a resource.
|
int |
getInstances()
Retrieves the number of instances, that this factory
will create using
ResourceFactory.createResource(). |
java.lang.Class<Telephony> |
getResourceType()
Returns the class type of the resource to create.
|
java.lang.String |
getType()
Retrieves the type of the resources that are created by this
factory.
|
void |
setInstances(int number)
Sets the number of instances that this factory will create.
|
void |
setRecordingAudioFormat(javax.sound.sampled.AudioFormat format)
Sets the audio format to use for recording.
|
public DesktopTelephonySupportFactory()
public Telephony createResource() throws NoresourceError
createResource in interface ResourceFactory<Telephony>NoresourceError - error creating the requested resource.public void setInstances(int number)
number - Number of instances to create.public int getInstances()
ResourceFactory.createResource().getInstances in interface ResourceFactory<Telephony>public void setRecordingAudioFormat(javax.sound.sampled.AudioFormat format)
format - the audio formatpublic java.lang.String getType()
getType in interface ResourceFactory<Telephony>public java.lang.Class<Telephony> getResourceType()
getResourceType in interface ResourceFactory<Telephony>