public String getVersion() { return xmlStreamReader.getVersion(); }
@Override public String getVersion() { return underlying.getVersion(); }
private void handleStartDocument() throws SAXException { if (XMLStreamConstants.START_DOCUMENT == this.reader.getEventType()) { String xmlVersion = this.reader.getVersion(); if (StringUtils.hasLength(xmlVersion)) { this.xmlVersion = xmlVersion;
String encoding = "UTF-8"; //xmlr.getCharacterEncodingScheme(); String version = xmlr.getVersion(); if (encoding != null && version != null) writer.writeStartDocument(encoding, version); else if (version != null) writer.writeStartDocument(xmlr.getVersion()); break; case XMLEvent.END_DOCUMENT:
private void handleStartDocument() throws SAXException { if (XMLStreamConstants.START_DOCUMENT == this.reader.getEventType()) { String xmlVersion = this.reader.getVersion(); if (StringUtils.hasLength(xmlVersion)) { this.xmlVersion = xmlVersion;
public String getVersion() { return _xmlStream.getVersion(); }
case XMLEvent.START_DOCUMENT: String encoding = xmlr.getCharacterEncodingScheme(); String version = xmlr.getVersion(); version); else if (version != null) writer.writeStartDocument(xmlr.getVersion()); break; case XMLEvent.END_DOCUMENT:
case XMLStreamReader.START_DOCUMENT: b.append("<?xml"); b.append(" version='" + xmlr.getVersion() + "'"); b.append(" encoding='" + xmlr.getCharacterEncodingScheme() + "'"); if (xmlr.isStandalone())
private void handleStartDocument() throws SAXException { if (XMLStreamConstants.START_DOCUMENT == reader.getEventType()) { String xmlVersion = reader.getVersion(); if (StringUtils.hasLength(xmlVersion)) { this.xmlVersion = xmlVersion;
setPropertyIfNotNull(root, "_xmlVersion", xml.getVersion()); setPropertyIfNotNull(root, "_xmlEncoding", xml.getEncoding()); root.setProperty("url", url);
@Override public String getVersion() { switch (state) { case StartTag: case EndTag: return null; case Payload: default: return payloadReader.getVersion(); } }
public String getVersion() { if (state != STATE_INIT) { return realReader.getVersion(); } else { return null; } }
@Override public String getVersion() { return _adoptee.getVersion(); }
version = xsr.getVersion(); standAlone = xsr.isStandalone();
private void copyStartDocument() throws XMLStreamException { String encoding = reader.getEncoding(); String version = reader.getVersion(); if (version == null) version = "1.0"; writer.writeStartDocument(encoding, version); }
public FOMBuilder(FOMFactory factory, XMLStreamReader parser, ParserOptions parserOptions) { super(factory, new FOMStAXFilter(parser, parserOptions)); this.document = (OMDocument)factory.newDocument(); this.parserOptions = parserOptions; this.fomfactory = factory; String enc = parser.getCharacterEncodingScheme(); document.setCharsetEncoding(enc != null ? enc : "utf-8"); document.setXMLVersion(parser.getVersion() != null ? parser.getVersion() : "1.0"); }
private XmlDocumentDescriptor startDocument(XMLStreamReader streamReader, XmlDocumentDescriptor documentDescriptor) { documentDescriptor.setXmlVersion(streamReader.getVersion()); documentDescriptor.setCharacterEncodingScheme(streamReader.getCharacterEncodingScheme()); documentDescriptor.setStandalone(streamReader.isStandalone()); documentDescriptor.setLineNumber(streamReader.getLocation().getLineNumber()); return documentDescriptor; }
public StartDocument allocateStartDocument(XMLStreamReader reader) throws XMLStreamException { Location location = createStableLocation(reader); String encoding = reader.getCharacterEncodingScheme(); String version = reader.getVersion(); Boolean standalone = reader.standaloneSet() ? Boolean.valueOf(reader.isStandalone()) : null; QName schemaType = determineSchemaType(reader); return new StartDocumentEvent(encoding, standalone, version, location, schemaType); }
protected void createDocumentIfNecessary() { if (document == null && parser.getEventType() == XMLStreamReader.START_DOCUMENT) { document = createDocument(); if (charEncoding != null) { document.setCharsetEncoding(charEncoding); } document.setXMLVersion(parser.getVersion()); document.setXMLEncoding(parser.getCharacterEncodingScheme()); document.setStandalone(parser.isStandalone() ? "yes" : "no"); target = (OMContainerEx)document; } }
private XmlDocumentDescriptor startDocument(XMLStreamReader streamReader, XmlDocumentDescriptor documentDescriptor, Store store) { documentDescriptor.setXmlVersion(streamReader.getVersion()); documentDescriptor.setCharacterEncodingScheme(streamReader.getCharacterEncodingScheme()); documentDescriptor.setStandalone(streamReader.isStandalone()); return documentDescriptor; }