Methods Summary |
---|
java.lang.ClassLoader | getContextClassLoader()
return null;
|
boolean | getFileExists(java.io.File f)
return f.exists();
|
java.io.FileInputStream | getFileInputStream(java.io.File file)
return new FileInputStream(file);
|
static com.sun.org.apache.xalan.internal.xsltc.cmdline.SecuritySupport | getInstance()Return an appropriate instance of this class, depending on whether
we're on a JDK 1.1 or J2SE 1.2 (or later) system.
SecuritySupport ss = null;
try {
Class c = Class.forName("java.security.AccessController");
// if that worked, we're on 1.2.
/*
// don't reference the class explicitly so it doesn't
// get dragged in accidentally.
c = Class.forName("javax.mail.SecuritySupport12");
Constructor cons = c.getConstructor(new Class[] { });
ss = (SecuritySupport)cons.newInstance(new Object[] { });
*/
/*
* Unfortunately, we can't load the class using reflection
* because the class is package private. And the class has
* to be package private so the APIs aren't exposed to other
* code that could use them to circumvent security. Thus,
* we accept the risk that the direct reference might fail
* on some JDK 1.1 JVMs, even though we would never execute
* this code in such a case. Sigh...
*/
ss = new SecuritySupport12();
} catch (Exception ex) {
// ignore it
} finally {
if (ss == null)
ss = new SecuritySupport();
securitySupport = ss;
}
return (SecuritySupport)securitySupport;
|
long | getLastModified(java.io.File f)
return f.lastModified();
|
java.lang.ClassLoader | getParentClassLoader(java.lang.ClassLoader cl)
return null;
|
java.io.InputStream | getResourceAsStream(java.lang.ClassLoader cl, java.lang.String name)
InputStream ris;
if (cl == null) {
ris = ClassLoader.getSystemResourceAsStream(name);
} else {
ris = cl.getResourceAsStream(name);
}
return ris;
|
java.lang.ClassLoader | getSystemClassLoader()
return null;
|
java.lang.String | getSystemProperty(java.lang.String propName)
return System.getProperty(propName);
|