@@ -523,8 +523,8 @@ public void pushInputSource(final XMLInputSource inputSource) {
523
523
final String publicId = inputSource .getPublicId ();
524
524
final String baseSystemId = inputSource .getBaseSystemId ();
525
525
final String literalSystemId = inputSource .getSystemId ();
526
- final String expandedSystemId = expandSystemId (literalSystemId , baseSystemId );
527
- fCurrentEntity = new CurrentEntity (reader , encoding , publicId , baseSystemId , literalSystemId , expandedSystemId );
526
+ final String systemId = systemId (literalSystemId , baseSystemId );
527
+ fCurrentEntity = new CurrentEntity (reader , encoding , publicId , baseSystemId , literalSystemId , systemId );
528
528
}
529
529
530
530
private Reader getReader (final XMLInputSource inputSource ) {
@@ -560,8 +560,8 @@ public void evaluateInputSource(final XMLInputSource inputSource) {
560
560
final String publicId = inputSource .getPublicId ();
561
561
final String baseSystemId = inputSource .getBaseSystemId ();
562
562
final String literalSystemId = inputSource .getSystemId ();
563
- final String expandedSystemId = expandSystemId (literalSystemId , baseSystemId );
564
- fCurrentEntity = new CurrentEntity (reader , encoding , publicId , baseSystemId , literalSystemId , expandedSystemId );
563
+ final String systemId = systemId (literalSystemId , baseSystemId );
564
+ fCurrentEntity = new CurrentEntity (reader , encoding , publicId , baseSystemId , literalSystemId , systemId );
565
565
setScanner (fContentScanner );
566
566
setScannerState (STATE_CONTENT );
567
567
try {
@@ -631,7 +631,7 @@ public String getLiteralSystemId() {
631
631
/** Returns the expanded system identifier. */
632
632
@ Override
633
633
public String getSystemId () {
634
- return fCurrentEntity != null ? fCurrentEntity .expandedSystemId : null ;
634
+ return fCurrentEntity != null ? fCurrentEntity .systemId : null ;
635
635
}
636
636
637
637
/** Returns the current line number. */
@@ -823,14 +823,14 @@ public void setInputSource(final XMLInputSource source) throws IOException {
823
823
final String publicId = source .getPublicId ();
824
824
final String baseSystemId = source .getBaseSystemId ();
825
825
final String literalSystemId = source .getSystemId ();
826
- final String expandedSystemId = expandSystemId (literalSystemId , baseSystemId );
826
+ final String systemId = systemId (literalSystemId , baseSystemId );
827
827
828
828
// open stream
829
829
Reader reader = source .getCharacterStream ();
830
830
if (reader == null ) {
831
831
InputStream inputStream = source .getByteStream ();
832
832
if (inputStream == null ) {
833
- final URL url = new URL (expandedSystemId );
833
+ final URL url = new URL (systemId );
834
834
inputStream = url .openStream ();
835
835
}
836
836
fByteStream = new PlaybackInputStream (inputStream );
@@ -868,7 +868,7 @@ public void setInputSource(final XMLInputSource source) throws IOException {
868
868
reader = new BufferedReader (new InputStreamReader (fByteStream , fJavaEncoding ));
869
869
}
870
870
}
871
- fCurrentEntity = new CurrentEntity (reader , fIANAEncoding , publicId , baseSystemId , literalSystemId , expandedSystemId );
871
+ fCurrentEntity = new CurrentEntity (reader , fIANAEncoding , publicId , baseSystemId , literalSystemId , systemId );
872
872
873
873
// set scanner and state
874
874
if (fFragmentSpecialScannerTag_ != null ) {
@@ -954,7 +954,7 @@ protected static String getValue(final XMLAttributes attrs, final String aname)
954
954
*
955
955
*/
956
956
@ SuppressWarnings ("unused" )
957
- public static String expandSystemId (final String systemId , final String baseSystemId ) {
957
+ public static String systemId (final String systemId , final String baseSystemId ) {
958
958
959
959
// check for bad parameters id
960
960
if (systemId == null || systemId .length () == 0 ) {
@@ -1748,7 +1748,7 @@ private static final class CurrentEntity {
1748
1748
public final String literalSystemId ;
1749
1749
1750
1750
/** Expanded system identifier. */
1751
- final String expandedSystemId ;
1751
+ final String systemId ;
1752
1752
1753
1753
/** XML version. */
1754
1754
public final String version = "1.0" ;
@@ -1777,13 +1777,13 @@ private static final class CurrentEntity {
1777
1777
1778
1778
// Constructs an entity from the specified stream.
1779
1779
CurrentEntity (final Reader stream , final String encoding , final String publicId ,
1780
- final String baseSystemId , final String literalSystemId , final String expandedSystemId ) {
1780
+ final String baseSystemId , final String literalSystemId , final String systemId ) {
1781
1781
stream_ = stream ;
1782
1782
encoding_ = encoding ;
1783
1783
this .publicId = publicId ;
1784
1784
this .baseSystemId = baseSystemId ;
1785
1785
this .literalSystemId = literalSystemId ;
1786
- this .expandedSystemId = expandedSystemId ;
1786
+ this .systemId = systemId ;
1787
1787
}
1788
1788
1789
1789
char getCurrentChar () {
0 commit comments