1 16 17 package org.apache.xerces.dom; 18 19 import org.w3c.dom.ls.LSInput ; 20 21 import java.io.Reader ; 22 import java.io.InputStream ; 23 24 54 55 60 public class DOMInputImpl implements LSInput { 61 62 66 protected String fPublicId = null; 67 protected String fSystemId = null; 68 protected String fBaseSystemId = null; 69 70 protected InputStream fByteStream = null; 71 protected Reader fCharStream = null; 72 protected String fData = null; 73 74 protected String fEncoding = null; 75 76 protected boolean fCertifiedText = false; 77 78 83 public DOMInputImpl() {} 84 85 100 101 public DOMInputImpl(String publicId, String systemId, 102 String baseSystemId) { 103 104 fPublicId = publicId; 105 fSystemId = systemId; 106 fBaseSystemId = baseSystemId; 107 108 } 110 125 126 public DOMInputImpl(String publicId, String systemId, 127 String baseSystemId, InputStream byteStream, 128 String encoding) { 129 130 fPublicId = publicId; 131 fSystemId = systemId; 132 fBaseSystemId = baseSystemId; 133 fByteStream = byteStream; 134 fEncoding = encoding; 135 136 } 138 154 155 public DOMInputImpl(String publicId, String systemId, 156 String baseSystemId, Reader charStream, 157 String encoding) { 158 159 fPublicId = publicId; 160 fSystemId = systemId; 161 fBaseSystemId = baseSystemId; 162 fCharStream = charStream; 163 fEncoding = encoding; 164 165 } 167 183 184 public DOMInputImpl(String publicId, String systemId, 185 String baseSystemId, String data, 186 String encoding) { 187 fPublicId = publicId; 188 fSystemId = systemId; 189 fBaseSystemId = baseSystemId; 190 fData = data; 191 fEncoding = encoding; 192 } 194 204 205 public InputStream getByteStream(){ 206 return fByteStream; 207 } 208 209 219 220 public void setByteStream(InputStream byteStream){ 221 fByteStream = byteStream; 222 } 223 224 232 public Reader getCharacterStream(){ 233 return fCharStream; 234 } 235 243 244 public void setCharacterStream(Reader characterStream){ 245 fCharStream = characterStream; 246 } 247 248 255 public String getStringData(){ 256 return fData; 257 } 258 259 266 267 public void setStringData(String stringData){ 268 fData = stringData; 269 } 270 271 281 282 public String getEncoding(){ 283 return fEncoding; 284 } 285 286 296 public void setEncoding(String encoding){ 297 fEncoding = encoding; 298 } 299 300 305 public String getPublicId(){ 306 return fPublicId; 307 } 308 313 public void setPublicId(String publicId){ 314 fPublicId = publicId; 315 } 316 317 331 public String getSystemId(){ 332 return fSystemId; 333 } 334 348 public void setSystemId(String systemId){ 349 fSystemId = systemId; 350 } 351 352 357 public String getBaseURI(){ 358 return fBaseSystemId; 359 } 360 365 public void setBaseURI(String baseURI){ 366 fBaseSystemId = baseURI; 367 } 368 369 374 public boolean getCertifiedText(){ 375 return fCertifiedText; 376 } 377 378 383 384 public void setCertifiedText(boolean certifiedText){ 385 fCertifiedText = certifiedText; 386 } 387 388 } | Popular Tags |