src/java.xml/share/classes/com/sun/xml/internal/stream/events/StartDocumentEvent.java
equal
deleted
inserted
replaced
71 protected void init(String encoding, String version, boolean standalone,Location loc) { |
71 protected void init(String encoding, String version, boolean standalone,Location loc) { |
72 setEventType(XMLStreamConstants.START_DOCUMENT); |
72 setEventType(XMLStreamConstants.START_DOCUMENT); |
73 this.fEncodingScheam = encoding; |
73 this.fEncodingScheam = encoding; |
74 this.fVersion = version; |
74 this.fVersion = version; |
75 this.fStandalone = standalone; |
75 this.fStandalone = standalone; |
76 if (encoding != null && !encoding.equals("")) |
76 if (encoding != null && !encoding.isEmpty()) |
77 this.fEncodingSchemeSet = true; |
77 this.fEncodingSchemeSet = true; |
78 else { |
78 else { |
79 this.fEncodingSchemeSet = false; |
79 this.fEncodingSchemeSet = false; |
80 this.fEncodingScheam = "UTF-8"; |
80 this.fEncodingScheam = "UTF-8"; |
81 } |
81 } |