@Override public boolean isStandalone() { if (this.event.isStartDocument()) { return ((StartDocument) this.event).isStandalone(); } else { throw new IllegalStateException(); } }
@Override public boolean isStandalone() { if (this.event.isStartDocument()) { return ((StartDocument) this.event).isStandalone(); } else { throw new IllegalStateException(); } }
public boolean isStandalone() { if (event.isStartDocument()) { return ((StartDocument) event).isStandalone(); } else { throw new IllegalStateException(); } }
((javax.xml.stream.events.StartDocument)event).getCharacterEncodingScheme()); document.setProperty("STANDALONE", String.valueOf( ((javax.xml.stream.events.StartDocument)event).isStandalone()));
@Override public boolean isStandalone() { if (this.event.isStartDocument()) { return ((StartDocument) this.event).isStandalone(); } else { throw new IllegalStateException(); } }
public boolean isStandalone() { if (event.isStartDocument()) { return ((StartDocument) event).isStandalone(); } else { throw new IllegalStateException(); } }
public boolean isStandalone() { if (event.isStartDocument()) { return ((StartDocument) event).isStandalone(); } else { throw new IllegalStateException(); } }
@Override public boolean isStandalone() { if (event.isStartDocument()) { return ((StartDocument) event).isStandalone(); } else { throw new IllegalStateException(); } }
@Override public boolean isStandalone() { if (this.event.isStartDocument()) { return ((StartDocument) this.event).isStandalone(); } else { throw new IllegalStateException(); } }
public boolean isStandalone() { if (event.isStartDocument()) { return ((StartDocument) event).isStandalone(); } else { throw new IllegalStateException(); } }
public boolean isStandalone() { if (event.isStartDocument()) { return ((StartDocument) event).isStandalone(); } else { throw new IllegalStateException(); } }
@Override public boolean isStandalone() { if (event.isStartDocument()) { return ((StartDocument) event).isStandalone(); } else { throw new IllegalStateException(); } }
public boolean isStandalone() { requiredEventType(START_DOCUMENT); return ((StartDocument) current).isStandalone(); }
public boolean isStandalone() { requiredEventType(START_DOCUMENT); return ((StartDocument) current).isStandalone(); }
public void addStartDocument(StartDocument sd) throws XMLStreamException { String encoding = sd.getCharacterEncodingScheme(); String version = sd.getVersion(); boolean standalone = sd.isStandalone(); writer.writeStartDocument(encoding,version); }
private void processStartDocument( StartDocument event ) throws ParserConfigurationException { //System.out.println( "SD=" + event ); String s; document = XmlUtils.createDocument( false ); pushLevel( null, event, document, document, config ); writer.write( "<?xml" ); s = event.getVersion(); if( s == null ) { s = DEFAULT_XML_VERSION; } writer.write( " version=\""); writer.write( s ); writer.write( "\"" ); s = event.getCharacterEncodingScheme(); if( s != null ) { writer.write( " encoding=\""); writer.write( s ); writer.write( "\"" ); } writer.write( " standalone=\""); writer.write( event.isStandalone() ? "yes" : "no" ); writer.write( "\"" ); writer.write( "?>" ); }
private void processStartDocument( StartDocument event ) throws ParserConfigurationException { String s; document = XmlUtils.createDocument( false ); pushLevel( null, document, document, config ); writer.write( "<?xml" ); s = event.getVersion(); if( s == null ) { s = DEFAULT_XML_VERSION; } writer.write( " version=\""); writer.write( s ); writer.write( "\"" ); s = event.getCharacterEncodingScheme(); if( s != null ) { writer.write( " encoding=\""); writer.write( s ); writer.write( "\"" ); } writer.write( " standalone=\""); writer.write( event.isStandalone() ? "yes" : "no" ); writer.write( "\"" ); writer.write( "?>" ); }
/** * 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(); }
/** * Writes a {@link StartDocument} to the provided stream. * * @param start The {@link StartDocument} to write. * @param writer The destination stream. * @throws IOException If an error occurs writing to the stream. */ public static final void writeStartDocument(StartDocument start, Writer writer) throws IOException { String version = start.getVersion(); String encoding = start.getCharacterEncodingScheme(); if (start.standaloneSet()) { writeStartDocument(version, encoding, start.isStandalone(), writer); } else { writeStartDocument(version, encoding, writer); } }
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()) ; }