/** Returns true if debug has been enabled. */ private static boolean isDebugEnabled() { try { String val = SecuritySupport.getSystemProperty("xerces.debug"); // Allow simply setting the prop to turn on debug return (val != null && (!"false".equals(val))); } catch (SecurityException se) {} return false; } // isDebugEnabled()
ClassLoader context = SecuritySupport.getContextClassLoader(); ClassLoader system = SecuritySupport.getSystemClassLoader(); break; chain = SecuritySupport.getParentClassLoader(chain); chain = SecuritySupport.getParentClassLoader(chain); };
String systemProp = SecuritySupport.getSystemProperty(factoryId); if (systemProp != null && systemProp.length() > 0) { if (DEBUG) debugPrintln("found system property, value=" + systemProp); boolean propertiesFileExists = false; try { String javah = SecuritySupport.getSystemProperty("java.home"); propertiesFilename = javah + File.separator + "lib" + File.separator + DEFAULT_PROPERTIES_FILENAME; propertiesFile = new File(propertiesFilename); propertiesFileExists = SecuritySupport.getFileExists(propertiesFile); } catch (SecurityException e) { (fLastModified < (fLastModified = SecuritySupport.getLastModified(propertiesFile)))) { loadProperties = true; } else { fLastModified = SecuritySupport.getLastModified(propertiesFile); fis = SecuritySupport.getFileInputStream(propertiesFile); fXercesProperties.load(fis); FileInputStream fis = null; try { fis = SecuritySupport.getFileInputStream(new File(propertiesFilename)); Properties props = new Properties(); props.load(fis);
is = SecuritySupport.getResourceAsStream(cl, serviceId); if (cl != current) { cl = current; is = SecuritySupport.getResourceAsStream(cl, serviceId);
String systemProp = SecuritySupport.getSystemProperty(factoryId); if (systemProp != null && systemProp.length() > 0) { if (DEBUG) debugPrintln("found system property, value=" + systemProp); boolean propertiesFileExists = false; try { String javah = SecuritySupport.getSystemProperty("java.home"); propertiesFilename = javah + File.separator + "lib" + File.separator + DEFAULT_PROPERTIES_FILENAME; propertiesFile = new File(propertiesFilename); propertiesFileExists = SecuritySupport.getFileExists(propertiesFile); } catch (SecurityException e) { (fLastModified < (fLastModified = SecuritySupport.getLastModified(propertiesFile)))) { loadProperties = true; } else { fLastModified = SecuritySupport.getLastModified(propertiesFile); fis = SecuritySupport.getFileInputStream(propertiesFile); fXercesProperties.load(fis); FileInputStream fis = null; try { fis = SecuritySupport.getFileInputStream(new File(propertiesFilename)); Properties props = new Properties(); props.load(fis);
is = SecuritySupport.getResourceAsStream(cl, serviceId); if (cl != current) { cl = current; is = SecuritySupport.getResourceAsStream(cl, serviceId);
/** Returns true if debug has been enabled. */ private static boolean isDebugEnabled() { try { String val = SecuritySupport.getSystemProperty("xerces.debug"); // Allow simply setting the prop to turn on debug return (val != null && (!"false".equals(val))); } catch (SecurityException se) {} return false; } // isDebugEnabled()