@Override public void startObject() throws IOException { delegate.startObject(); }
@Override public void startObject() throws IOException { delegate.startObject(); }
private void consumeName(ScopeInfo info) throws XMLStreamException, IOException { String fieldName = source.name(); if (fieldName.startsWith("@")) { fieldName = fieldName.substring(1); if (source.peek() == JsonStreamToken.VALUE) { readAttrNsDecl(fieldName, source.value().text); } else if (XMLConstants.XMLNS_ATTRIBUTE.equals(fieldName)) { // badgerfish source.startObject(); while (source.peek() == JsonStreamToken.NAME) { String prefix = source.name(); if ("$".equals(prefix)) { readNsDecl(XMLConstants.DEFAULT_NS_PREFIX, source.value().text); } else { readNsDecl(prefix, source.value().text); } } source.endObject(); } else { throw new IllegalStateException("Expected attribute value"); } } else if ("$".equals(fieldName)) { readData(source.value(), XMLStreamConstants.CHARACTERS); } else { info.currentTagName = fieldName; } }
private void consumeName(ScopeInfo info) throws XMLStreamException, IOException { String fieldName = source.name(); if (textProperty.equals(fieldName)) { readData(source.value(), XMLStreamConstants.CHARACTERS); } else if (fieldName.startsWith(attributePrefix)) { fieldName = fieldName.substring(1); if (source.peek() == JsonStreamToken.VALUE) { readAttrNsDecl(fieldName, source.value().text); } else if (XMLConstants.XMLNS_ATTRIBUTE.equals(fieldName)) { // badgerfish source.startObject(); while (source.peek() == JsonStreamToken.NAME) { String prefix = source.name(); if (textProperty.equals(prefix)) { readNsDecl(XMLConstants.DEFAULT_NS_PREFIX, source.value().text); } else { readNsDecl(prefix, source.value().text); } } source.endObject(); } else { throw new IllegalStateException("Expected attribute value"); } } else { info.currentTagName = fieldName; } }
switch (delegate.peek()) { case START_OBJECT: delegate.startObject(); target.startObject(); break;
switch (delegate.peek()) { case START_OBJECT: delegate.startObject(); target.startObject(); break;
source.startObject(); if (scope.isRoot() && !isStartDocumentRead()) { readStartDocument(null, null, null);
source.startObject(); if (scope.isRoot() && !isStartDocumentRead()) { readStartDocument(null, null, null);