equal
deleted
inserted
replaced
31 import java.net.URL; |
31 import java.net.URL; |
32 import java.net.URLConnection; |
32 import java.net.URLConnection; |
33 import java.net.MalformedURLException; |
33 import java.net.MalformedURLException; |
34 import javax.xml.parsers.SAXParserFactory; |
34 import javax.xml.parsers.SAXParserFactory; |
35 import com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl; |
35 import com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl; |
|
36 import com.sun.org.apache.xerces.internal.utils.SecuritySupport; |
36 import com.sun.org.apache.xml.internal.resolver.readers.SAXCatalogReader; |
37 import com.sun.org.apache.xml.internal.resolver.readers.SAXCatalogReader; |
37 import com.sun.org.apache.xml.internal.resolver.readers.OASISXMLCatalogReader; |
38 import com.sun.org.apache.xml.internal.resolver.readers.OASISXMLCatalogReader; |
38 import com.sun.org.apache.xml.internal.resolver.readers.TR9401CatalogReader; |
39 import com.sun.org.apache.xml.internal.resolver.readers.TR9401CatalogReader; |
39 |
40 |
40 /** |
41 /** |
522 * |
523 * |
523 * @return A vector of the mapped system identifiers or null |
524 * @return A vector of the mapped system identifiers or null |
524 */ |
525 */ |
525 private Vector resolveAllLocalSystem(String systemId) { |
526 private Vector resolveAllLocalSystem(String systemId) { |
526 Vector map = new Vector(); |
527 Vector map = new Vector(); |
527 String osname = System.getProperty("os.name"); |
528 String osname = SecuritySupport.getSystemProperty("os.name"); |
528 boolean windows = (osname.indexOf("Windows") >= 0); |
529 boolean windows = (osname.indexOf("Windows") >= 0); |
529 Enumeration en = catalogEntries.elements(); |
530 Enumeration en = catalogEntries.elements(); |
530 while (en.hasMoreElements()) { |
531 while (en.hasMoreElements()) { |
531 CatalogEntry e = (CatalogEntry) en.nextElement(); |
532 CatalogEntry e = (CatalogEntry) en.nextElement(); |
532 if (e.getEntryType() == SYSTEM |
533 if (e.getEntryType() == SYSTEM |
550 * |
551 * |
551 * @return A vector of URNs that map to the systemId. |
552 * @return A vector of URNs that map to the systemId. |
552 */ |
553 */ |
553 private Vector resolveLocalSystemReverse(String systemId) { |
554 private Vector resolveLocalSystemReverse(String systemId) { |
554 Vector map = new Vector(); |
555 Vector map = new Vector(); |
555 String osname = System.getProperty("os.name"); |
556 String osname = SecuritySupport.getSystemProperty("os.name"); |
556 boolean windows = (osname.indexOf("Windows") >= 0); |
557 boolean windows = (osname.indexOf("Windows") >= 0); |
557 Enumeration en = catalogEntries.elements(); |
558 Enumeration en = catalogEntries.elements(); |
558 while (en.hasMoreElements()) { |
559 while (en.hasMoreElements()) { |
559 CatalogEntry e = (CatalogEntry) en.nextElement(); |
560 CatalogEntry e = (CatalogEntry) en.nextElement(); |
560 if (e.getEntryType() == SYSTEM |
561 if (e.getEntryType() == SYSTEM |