APIdia Launch Partner
Top Description Constructors Methods
com.sun.media.sound

pack-priv final Class JSSecurityManager

extends Object
Class Inheritance
Imports
java.io.Reader, java.nio.file.Files, .Path, .Paths, java.util.ArrayList, .Iterator, .List, .Properties, .ServiceLoader

Historically this class managed ensuring privileges to access resources it is still used to get those resources but no longer does checks.
Author
Matthias Pfisterer

Constructor Summary

AccessConstructor and Description
private
JSSecurityManager()

Prevent instantiation.

Method Summary

Modifier and TypeMethod and Description
pack-priv static Thread
createThread(final Runnable runnable, final String threadName, final boolean isDaemon, final int priority, final boolean doStart)

Create a Thread in the current ThreadGroup.

pack-priv static synchronized <T> List<T>
getProviders(final Class<T> providerClass)

pack-priv static void
loadProperties(final Properties
the properties bundle to store the values of the properties file
properties
)

Load properties from a file.

private static boolean
loadPropertiesImpl(final Properties properties, String first, String... more)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JSSecurityManagerback to summary
private JSSecurityManager()

Prevent instantiation.

Method Detail

createThreadback to summary
pack-priv static Thread createThread(final Runnable runnable, final String threadName, final boolean isDaemon, final int priority, final boolean doStart)

Create a Thread in the current ThreadGroup.

getProvidersback to summary
pack-priv static synchronized <T> List<T> getProviders(final Class<T> providerClass)
loadPropertiesback to summary
pack-priv static void loadProperties(final Properties properties)

Load properties from a file.

This method tries to load properties from the filename give into the passed properties object. If the file cannot be found or something else goes wrong, the method silently fails.

If the file referenced in "javax.sound.config.file" property exists and the user has an access to it, then it will be loaded, otherwise default configuration file "JAVA_HOME/conf/sound.properties" will be loaded.

Parameters
properties:Properties

the properties bundle to store the values of the properties file

loadPropertiesImplback to summary
private static boolean loadPropertiesImpl(final Properties properties, String first, String... more)