this.xmlVersion = xmlVersion; if (startDocument.encodingSet()) { this.encoding = startDocument.getCharacterEncodingScheme();
this.xmlVersion = xmlVersion; if (startDocument.encodingSet()) { this.encoding = startDocument.getCharacterEncodingScheme();
this.xmlVersion = xmlVersion; if (startDocument.encodingSet()) { this.encoding = startDocument.getCharacterEncodingScheme();
if (event.encodingSet()) { String encodingScheme = event .getCharacterEncodingScheme();
/** * Writes a {@link StartDocument} to the provided stream. * * @param start The {@link StartDocument} to write. * @param writer The destination stream. * @throws XMLStreamException If an error occurs writing to the stream. */ public static final void writeStartDocument(StartDocument start, XMLStreamWriter writer) throws XMLStreamException { String version = start.getVersion(); if (start.encodingSet()) { String encoding = start.getCharacterEncodingScheme(); writer.writeStartDocument(encoding, version); } else { writer.writeStartDocument(version); } }
if (sd.encodingSet()) { encoding = sd.getCharacterEncodingScheme();
/** * Copy constructor. * * @param that The {@link StartDocument} event to copy. */ public StartDocumentEvent(StartDocument that) { super(that); // copy encoding if (that.encodingSet()) { this.encoding = that.getCharacterEncodingScheme(); } // copy standalone if (standaloneSet()) { this.standalone = that.isStandalone() ? Boolean.TRUE : Boolean.FALSE; } this.version = DEFAULT_VERSION.equals(that.getVersion()) ? null : that.getVersion(); }
this.xmlVersion = xmlVersion; if (startDocument.encodingSet()) { this.encoding = startDocument.getCharacterEncodingScheme();
this.xmlVersion = xmlVersion; if (startDocument.encodingSet()) { this.encoding = startDocument.getCharacterEncodingScheme();
if (event.encodingSet()) { String encodingScheme = event .getCharacterEncodingScheme();
if (event.encodingSet()) { String encodingScheme = event .getCharacterEncodingScheme();
if (event.encodingSet()) { String encodingScheme = event .getCharacterEncodingScheme();
if (event.encodingSet()) { String encodingScheme = event .getCharacterEncodingScheme();
if (event.encodingSet()) { String encodingScheme = event .getCharacterEncodingScheme();
break; case XMLStreamConstants.START_DOCUMENT: if (((StartDocument)event).encodingSet()) { writer.writeStartDocument(((StartDocument)event).getCharacterEncodingScheme(), ((StartDocument)event).getVersion());
if (event.encodingSet()) { String encodingScheme = event .getCharacterEncodingScheme();
if (event.encodingSet()) { String encodingScheme = event .getCharacterEncodingScheme();
break; case XMLEvent.START_DOCUMENT: if (((StartDocument)event).encodingSet()) { writer.writeStartDocument(((StartDocument)event).getCharacterEncodingScheme(), ((StartDocument)event).getVersion());
return false; return encodingSet() == start.encodingSet() && isStandalone() == start.isStandalone() && standaloneSet() == start.standaloneSet();
public boolean equals(Object o) { if (o == this) return true; if (o == null) return false; if (!(o instanceof StartDocument)) return false; StartDocument other = (StartDocument) o; return (encodingSet() == other.encodingSet()) && (isStandalone() == other.isStandalone()) && (standaloneSet() == other.standaloneSet()) && stringsWithNullsEqual(getCharacterEncodingScheme(), other.getCharacterEncodingScheme()) && stringsWithNullsEqual(getSystemId(), other.getSystemId()) && stringsWithNullsEqual(getVersion(), other.getVersion()) ; }