jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLEntityManager.java
changeset 16953 a44e04deb948
parent 13266 8be9cee3d6dd
child 17534 21dc0b2762da
equal deleted inserted replaced
16416:bcebd3fdefc9 16953:a44e04deb948
    49 import com.sun.org.apache.xerces.internal.util.*;
    49 import com.sun.org.apache.xerces.internal.util.*;
    50 import com.sun.org.apache.xerces.internal.xni.XMLResourceIdentifier;
    50 import com.sun.org.apache.xerces.internal.xni.XMLResourceIdentifier;
    51 import com.sun.org.apache.xerces.internal.xni.XNIException;
    51 import com.sun.org.apache.xerces.internal.xni.XNIException;
    52 import com.sun.org.apache.xerces.internal.xni.parser.*;
    52 import com.sun.org.apache.xerces.internal.xni.parser.*;
    53 import com.sun.org.apache.xerces.internal.impl.Constants;
    53 import com.sun.org.apache.xerces.internal.impl.Constants;
       
    54 import com.sun.org.apache.xerces.internal.utils.SecuritySupport;
    54 import com.sun.xml.internal.stream.Entity;
    55 import com.sun.xml.internal.stream.Entity;
    55 import com.sun.org.apache.xerces.internal.xni.Augmentations;
    56 import com.sun.org.apache.xerces.internal.xni.Augmentations;
    56 
    57 
    57 import com.sun.org.apache.xerces.internal.impl.io.UTF8Reader;
    58 import com.sun.org.apache.xerces.internal.impl.io.UTF8Reader;
    58 import com.sun.org.apache.xerces.internal.impl.io.ASCIIReader;
    59 import com.sun.org.apache.xerces.internal.impl.io.ASCIIReader;
  1725     // which encoding to use. Leave them for now.
  1726     // which encoding to use. Leave them for now.
  1726     private static synchronized URI getUserDir() throws URI.MalformedURIException {
  1727     private static synchronized URI getUserDir() throws URI.MalformedURIException {
  1727         // get the user.dir property
  1728         // get the user.dir property
  1728         String userDir = "";
  1729         String userDir = "";
  1729         try {
  1730         try {
  1730             userDir = System.getProperty("user.dir");
  1731             userDir = SecuritySupport.getSystemProperty("user.dir");
  1731         }
  1732         }
  1732         catch (SecurityException se) {
  1733         catch (SecurityException se) {
  1733         }
  1734         }
  1734 
  1735 
  1735         // return empty string if property value is empty string.
  1736         // return empty string if property value is empty string.