src/java.xml/share/classes/com/sun/xml/internal/stream/events/StartDocumentEvent.java
changeset 52902 e3398b2e1ab0
parent 47216 71c04702a3d5
equal deleted inserted replaced
52901:3ba9ff4d4aaf 52902:e3398b2e1ab0
    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         }