- java.lang.Object
-
- jakarta.activation.SecuritySupport
-
class SecuritySupport extends java.lang.Object
Security related methods that only work on J2SE 1.2 and newer.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SecuritySupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ClassLoader
getContextClassLoader()
static java.io.InputStream
getResourceAsStream(java.lang.Class<?> c, java.lang.String name)
static java.net.URL[]
getResources(java.lang.ClassLoader cl, java.lang.String name)
static java.net.URL[]
getSystemResources(java.lang.String name)
static java.io.InputStream
openStream(java.net.URL url)
-
-
-
Method Detail
-
getContextClassLoader
public static java.lang.ClassLoader getContextClassLoader()
-
getResourceAsStream
public static java.io.InputStream getResourceAsStream(java.lang.Class<?> c, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
getResources
public static java.net.URL[] getResources(java.lang.ClassLoader cl, java.lang.String name)
-
getSystemResources
public static java.net.URL[] getSystemResources(java.lang.String name)
-
openStream
public static java.io.InputStream openStream(java.net.URL url) throws java.io.IOException
- Throws:
java.io.IOException
-
-