1 57 package com.sun.org.apache.xerces.internal.util; 58 59 import javax.xml.transform.Source ; 60 61 import com.sun.org.apache.xerces.internal.impl.XMLEntityManager; 62 import com.sun.org.apache.xerces.internal.util.URI.MalformedURIException; 63 import com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource; 64 65 81 public final class XMLInputSourceAdaptor implements Source { 82 85 public final XMLInputSource fSource; 86 87 public XMLInputSourceAdaptor( XMLInputSource core ) { 88 fSource = core; 89 } 90 91 public void setSystemId(String systemId) { 92 fSource.setSystemId(systemId); 93 } 94 95 public String getSystemId() { 96 try { 97 return XMLEntityManager.expandSystemId( 98 fSource.getSystemId(), fSource.getBaseSystemId(), false); 99 } catch (MalformedURIException e) { 100 return fSource.getSystemId(); 101 } 102 } 103 } 104 | Popular Tags |