1 6 package org.xml.sax; 7 8 import java.io.Reader ; 9 import java.io.InputStream ; 10 11 60 public class InputSource { 61 62 71 public InputSource () 72 { 73 } 74 75 76 93 public InputSource (String systemId) 94 { 95 setSystemId(systemId); 96 } 97 98 99 114 public InputSource (InputStream byteStream) 115 { 116 setByteStream(byteStream); 117 } 118 119 120 134 public InputSource (Reader characterStream) 135 { 136 setCharacterStream(characterStream); 137 } 138 139 140 152 public void setPublicId (String publicId) 153 { 154 this.publicId = publicId; 155 } 156 157 158 164 public String getPublicId () 165 { 166 return publicId; 167 } 168 169 170 193 public void setSystemId (String systemId) 194 { 195 this.systemId = systemId; 196 } 197 198 199 211 public String getSystemId () 212 { 213 return systemId; 214 } 215 216 217 234 public void setByteStream (InputStream byteStream) 235 { 236 this.byteStream = byteStream; 237 } 238 239 240 250 public InputStream getByteStream () 251 { 252 return byteStream; 253 } 254 255 256 271 public void setEncoding (String encoding) 272 { 273 this.encoding = encoding; 274 } 275 276 277 287 public String getEncoding () 288 { 289 return encoding; 290 } 291 292 293 305 public void setCharacterStream (Reader characterStream) 306 { 307 this.characterStream = characterStream; 308 } 309 310 311 317 public Reader getCharacterStream () 318 { 319 return characterStream; 320 } 321 322 323 324 328 private String publicId; 329 private String systemId; 330 private InputStream byteStream; 331 private String encoding; 332 private Reader characterStream; 333 334 } 335 336 | Popular Tags |