javax.sound.sampled

Class AudioPermission

public class AudioPermission extends BasicPermission

This represents the permission to use an audio device. The only predefined permission names are "play" and "record".

Since: 1.3

Constructor Summary
AudioPermission(String name)
Construct an AudioPermission with the given name.
AudioPermission(String name, String actions)
Construct an AudioPermission with the given name.

Constructor Detail

AudioPermission

public AudioPermission(String name)
Construct an AudioPermission with the given name.

Parameters: name the name of the permission, like "play" or "record"

AudioPermission

public AudioPermission(String name, String actions)
Construct an AudioPermission with the given name.

Parameters: name the name of the permission, like "play" or "record" actions the actions; should be null