1 57 58 package com.sun.org.apache.xerces.internal.xinclude; 59 60 import com.sun.org.apache.xerces.internal.util.XMLInputSourceAdaptor; 61 import com.sun.org.apache.xerces.internal.xni.XMLResourceIdentifier; 62 import com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource; 63 import java.io.InputStream ; 64 import java.io.Reader ; 65 import java.util.Properties ; 66 67 import javax.xml.transform.stream.StreamSource ; 68 69 public class XIncludeInputSource extends XMLInputSource { 70 71 Properties props = null; 72 73 88 public XIncludeInputSource(String publicId, String systemId, 89 String baseSystemId) { 90 super(publicId,systemId,baseSystemId); 91 props = new Properties (); 92 } 93 94 101 public XIncludeInputSource(XMLResourceIdentifier resourceIdentifier) { 102 super(resourceIdentifier); 103 props = new Properties (); 104 } 105 106 121 public XIncludeInputSource(String publicId, String systemId, 122 String baseSystemId, InputStream byteStream, 123 String encoding) { 124 super(publicId,systemId,baseSystemId,byteStream,encoding); 125 props = new Properties (); 126 } 128 144 public XIncludeInputSource(String publicId, String systemId, 145 String baseSystemId, Reader charStream, 146 String encoding) { 147 super(publicId,systemId,baseSystemId,charStream,encoding); 148 props = new Properties (); 149 } 151 154 public XIncludeInputSource( StreamSource source ) { 155 super(source); 156 props = new Properties (); 157 } 158 159 162 163 public void setProperty(String propName , String propValue){ 164 if(propName!= null && propValue != null){ 165 props.put(propName,propValue); 166 } 167 } 168 169 172 173 public Object getProperty(String propName){ 174 if(propName != null) 175 return props.get(propName); 176 177 return null; 178 } 179 } 180 | Popular Tags |