335 /** Base character offset for computing absolute character offset. */
336 public int baseCharOffset;
337
338 /** Start position in character buffer. */
339 public int startPosition;
340
341 // to allow the reader/inputStream to behave efficiently:
342 public boolean mayReadChunks;
343
344 // to know that prolog is read
345 public boolean xmlDeclChunkRead = false;
346
347 /** returns the name of the current encoding
348 * @return current encoding name
349 */
350 public String getEncodingName(){
351 return encoding ;
352 }
353
354 /**each 'external' parsed entity may have xml/text declaration containing version information
355 * @return String version of the enity, for an internal entity version would be null
356 */
357 public String getEntityVersion(){
358 return version ;
359 }
360
361 /** each 'external' parsed entity may have xml/text declaration containing version information
362 * @param String version of the external parsed entity
363 */
364 public void setEntityVersion(String version){
365 this.version = version ;
366 }
367
368 /** Returns the java.io.Reader associated with this entity.Readers are used
369 * to read from the file. Readers wrap any particular InputStream that was
370 * used to open the entity.
371 * @return java.io.Reader Reader associated with this entity
372 */
373 public Reader getEntityReader(){
374 return reader;
375 }
|
335 /** Base character offset for computing absolute character offset. */
336 public int baseCharOffset;
337
338 /** Start position in character buffer. */
339 public int startPosition;
340
341 // to allow the reader/inputStream to behave efficiently:
342 public boolean mayReadChunks;
343
344 // to know that prolog is read
345 public boolean xmlDeclChunkRead = false;
346
347 /** returns the name of the current encoding
348 * @return current encoding name
349 */
350 public String getEncodingName(){
351 return encoding ;
352 }
353
354 /**each 'external' parsed entity may have xml/text declaration containing version information
355 * @return String version of the entity, for an internal entity version would be null
356 */
357 public String getEntityVersion(){
358 return version ;
359 }
360
361 /** each 'external' parsed entity may have xml/text declaration containing version information
362 * @param String version of the external parsed entity
363 */
364 public void setEntityVersion(String version){
365 this.version = version ;
366 }
367
368 /** Returns the java.io.Reader associated with this entity.Readers are used
369 * to read from the file. Readers wrap any particular InputStream that was
370 * used to open the entity.
371 * @return java.io.Reader Reader associated with this entity
372 */
373 public Reader getEntityReader(){
374 return reader;
375 }
|