public final class SecuritySupport extends Object
| Modifier and Type | Method and Description |
|---|---|
static ClassLoader |
findClassLoader()
Figure out which ClassLoader to use.
|
static boolean |
getFileExists(File f) |
static String[] |
getFileList(File f,
FilenameFilter filter) |
static SecuritySupport |
getInstance()
Return an instance of this class.
|
static InputStream |
getResourceAsStream(ClassLoader cl,
String name) |
static InputStream |
getResourceAsStream(String name)
Return resource using the same classloader for the ObjectFactory by
default or bootclassloader when Security Manager is in place
|
static ListResourceBundle |
getResourceBundle(String bundle)
Gets a resource bundle using the specified base name, the default locale,
and the caller's class loader.
|
static ListResourceBundle |
getResourceBundle(String bundle,
Locale locale)
Gets a resource bundle using the specified base name and locale, and the
caller's class loader.
|
static String |
getSystemProperty(String propName) |
public static SecuritySupport getInstance()
public static InputStream getResourceAsStream(String name)
public static InputStream getResourceAsStream(ClassLoader cl, String name)
public static ListResourceBundle getResourceBundle(String bundle)
bundle - the base name of the resource bundle, a fully qualified
class namepublic static ListResourceBundle getResourceBundle(String bundle, Locale locale)
bundle - the base name of the resource bundle, a fully qualified
class namelocale - the locale for which a resource bundle is desiredpublic static String[] getFileList(File f, FilenameFilter filter)
public static boolean getFileExists(File f)
public static ClassLoader findClassLoader()
Copyright © 2018–2021 mhoffrogge. All rights reserved.