1 57 58 package com.sun.org.apache.xerces.internal.dom; 59 60 import org.w3c.dom.ls.LSInput ; 61 62 import java.io.Reader ; 63 import java.io.InputStream ; 64 65 94 95 100 public class DOMInputImpl implements LSInput { 101 102 106 protected String fPublicId = null; 107 protected String fSystemId = null; 108 protected String fBaseSystemId = null; 109 110 protected InputStream fByteStream = null; 111 protected Reader fCharStream = null; 112 protected String fData = null; 113 114 protected String fEncoding = null; 115 116 protected boolean fCertifiedText = false; 117 118 123 public DOMInputImpl() {} 124 125 140 141 public DOMInputImpl(String publicId, String systemId, 142 String baseSystemId) { 143 144 fPublicId = publicId; 145 fSystemId = systemId; 146 fBaseSystemId = baseSystemId; 147 148 } 150 165 166 public DOMInputImpl(String publicId, String systemId, 167 String baseSystemId, InputStream byteStream, 168 String encoding) { 169 170 fPublicId = publicId; 171 fSystemId = systemId; 172 fBaseSystemId = baseSystemId; 173 fByteStream = byteStream; 174 fEncoding = encoding; 175 176 } 178 194 195 public DOMInputImpl(String publicId, String systemId, 196 String baseSystemId, Reader charStream, 197 String encoding) { 198 199 fPublicId = publicId; 200 fSystemId = systemId; 201 fBaseSystemId = baseSystemId; 202 fCharStream = charStream; 203 fEncoding = encoding; 204 205 } 207 223 224 public DOMInputImpl(String publicId, String systemId, 225 String baseSystemId, String data, 226 String encoding) { 227 fPublicId = publicId; 228 fSystemId = systemId; 229 fBaseSystemId = baseSystemId; 230 fData = data; 231 fEncoding = encoding; 232 } 234 244 245 public InputStream getByteStream(){ 246 return fByteStream; 247 } 248 249 259 260 public void setByteStream(InputStream byteStream){ 261 fByteStream = byteStream; 262 } 263 264 272 public Reader getCharacterStream(){ 273 return fCharStream; 274 } 275 283 284 public void setCharacterStream(Reader characterStream){ 285 fCharStream = characterStream; 286 } 287 288 295 public String getStringData(){ 296 return fData; 297 } 298 299 306 307 public void setStringData(String stringData){ 308 fData = stringData; 309 } 310 311 321 322 public String getEncoding(){ 323 return fEncoding; 324 } 325 326 336 public void setEncoding(String encoding){ 337 fEncoding = encoding; 338 } 339 340 345 public String getPublicId(){ 346 return fPublicId; 347 } 348 353 public void setPublicId(String publicId){ 354 fPublicId = publicId; 355 } 356 357 371 public String getSystemId(){ 372 return fSystemId; 373 } 374 388 public void setSystemId(String systemId){ 389 fSystemId = systemId; 390 } 391 392 397 public String getBaseURI(){ 398 return fBaseSystemId; 399 } 400 405 public void setBaseURI(String baseURI){ 406 fBaseSystemId = baseURI; 407 } 408 409 414 public boolean getCertifiedText(){ 415 return fCertifiedText; 416 } 417 418 423 424 public void setCertifiedText(boolean certifiedText){ 425 fCertifiedText = certifiedText; 426 } 427 428 } | Popular Tags |