jaxp/src/com/sun/xml/internal/stream/XMLEntityStorage.java
changeset 16953 a44e04deb948
parent 12458 d601e4bba306
child 22139 f4b2aa462b46
equal deleted inserted replaced
16416:bcebd3fdefc9 16953:a44e04deb948
    34 import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException;
    34 import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException;
    35 import com.sun.org.apache.xerces.internal.impl.XMLEntityManager;
    35 import com.sun.org.apache.xerces.internal.impl.XMLEntityManager;
    36 import com.sun.org.apache.xerces.internal.impl.PropertyManager;
    36 import com.sun.org.apache.xerces.internal.impl.PropertyManager;
    37 import com.sun.org.apache.xerces.internal.impl.XMLErrorReporter;
    37 import com.sun.org.apache.xerces.internal.impl.XMLErrorReporter;
    38 import com.sun.org.apache.xerces.internal.impl.Constants;
    38 import com.sun.org.apache.xerces.internal.impl.Constants;
       
    39 import com.sun.org.apache.xerces.internal.utils.SecuritySupport;
    39 import java.util.Enumeration;
    40 import java.util.Enumeration;
    40 
    41 
    41 /**
    42 /**
    42  *
    43  *
    43  * @author K.Venugopal SUN Microsystems
    44  * @author K.Venugopal SUN Microsystems
   412     // which encoding to use. Leave them for now.
   413     // which encoding to use. Leave them for now.
   413     private static synchronized String getUserDir() {
   414     private static synchronized String getUserDir() {
   414         // get the user.dir property
   415         // get the user.dir property
   415         String userDir = "";
   416         String userDir = "";
   416         try {
   417         try {
   417             userDir = System.getProperty("user.dir");
   418             userDir = SecuritySupport.getSystemProperty("user.dir");
   418         }
   419         }
   419         catch (SecurityException se) {
   420         catch (SecurityException se) {
   420         }
   421         }
   421 
   422 
   422         // return empty string if property value is empty string.
   423         // return empty string if property value is empty string.