FileDocCategorySizeDatePackage
XMLInputSourceAdaptor.javaAPI DocJava SE 5 API4120Fri Aug 26 14:55:56 BST 2005com.sun.org.apache.xerces.internal.util

XMLInputSourceAdaptor

public final class XMLInputSourceAdaptor extends Object implements Source
{@link Source} that represents an {@link XMLInputSource}.

Ideally, we should be able to have {@link XMLInputSource} derive from {@link Source}, but the way the {@link XMLInputSource#getSystemId()} method works is different from the way {@link Source#getSystemId()} method works.

In a long run, we should make them consistent so that we can get rid of this awkward adaptor class.

author
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Fields Summary
public final XMLInputSource
fSource
the actual source information.
Constructors Summary
public XMLInputSourceAdaptor(XMLInputSource core)

        fSource = core;
    
Methods Summary
public java.lang.StringgetSystemId()

        try {
            return XMLEntityManager.expandSystemId(
                    fSource.getSystemId(), fSource.getBaseSystemId(), false);
        } catch (MalformedURIException e) {
            return fSource.getSystemId();
        }
    
public voidsetSystemId(java.lang.String systemId)

        fSource.setSystemId(systemId);