Initial commit
This commit is contained in:
103
sources/com/thoughtworks/xstream/io/json/JettisonStaxWriter.java
Normal file
103
sources/com/thoughtworks/xstream/io/json/JettisonStaxWriter.java
Normal file
@@ -0,0 +1,103 @@
|
||||
package com.thoughtworks.xstream.io.json;
|
||||
|
||||
import com.thoughtworks.xstream.io.naming.NameCoder;
|
||||
import com.thoughtworks.xstream.io.xml.QNameMap;
|
||||
import com.thoughtworks.xstream.io.xml.StaxWriter;
|
||||
import com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer;
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamWriter;
|
||||
import org.codehaus.jettison.mapped.MappedNamespaceConvention;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class JettisonStaxWriter extends StaxWriter {
|
||||
static /* synthetic */ Class class$java$util$Collection;
|
||||
static /* synthetic */ Class class$java$util$Map;
|
||||
private final MappedNamespaceConvention convention;
|
||||
|
||||
public JettisonStaxWriter(QNameMap qNameMap, XMLStreamWriter xMLStreamWriter, boolean z, boolean z2, NameCoder nameCoder, MappedNamespaceConvention mappedNamespaceConvention) throws XMLStreamException {
|
||||
super(qNameMap, xMLStreamWriter, z, z2, nameCoder);
|
||||
this.convention = mappedNamespaceConvention;
|
||||
}
|
||||
|
||||
static /* synthetic */ Class class$(String str) {
|
||||
try {
|
||||
return Class.forName(str);
|
||||
} catch (ClassNotFoundException e) {
|
||||
throw new NoClassDefFoundError().initCause(e);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x0032, code lost:
|
||||
|
||||
if (r6.isArray() == false) goto L21;
|
||||
*/
|
||||
@Override // com.thoughtworks.xstream.io.AbstractWriter, com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public void startNode(java.lang.String r5, java.lang.Class r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
javax.xml.stream.XMLStreamWriter r0 = r4.getXMLStreamWriter()
|
||||
if (r6 == 0) goto L61
|
||||
boolean r1 = r0 instanceof org.codehaus.jettison.AbstractXMLStreamWriter
|
||||
if (r1 == 0) goto L61
|
||||
java.lang.Class r1 = com.thoughtworks.xstream.io.json.JettisonStaxWriter.class$java$util$Collection
|
||||
if (r1 != 0) goto L16
|
||||
java.lang.String r1 = "java.util.Collection"
|
||||
java.lang.Class r1 = class$(r1)
|
||||
com.thoughtworks.xstream.io.json.JettisonStaxWriter.class$java$util$Collection = r1
|
||||
L16:
|
||||
boolean r1 = r1.isAssignableFrom(r6)
|
||||
if (r1 != 0) goto L34
|
||||
java.lang.Class r1 = com.thoughtworks.xstream.io.json.JettisonStaxWriter.class$java$util$Map
|
||||
if (r1 != 0) goto L28
|
||||
java.lang.String r1 = "java.util.Map"
|
||||
java.lang.Class r1 = class$(r1)
|
||||
com.thoughtworks.xstream.io.json.JettisonStaxWriter.class$java$util$Map = r1
|
||||
L28:
|
||||
boolean r1 = r1.isAssignableFrom(r6)
|
||||
if (r1 != 0) goto L34
|
||||
boolean r6 = r6.isArray()
|
||||
if (r6 == 0) goto L61
|
||||
L34:
|
||||
com.thoughtworks.xstream.io.xml.QNameMap r6 = r4.getQNameMap()
|
||||
java.lang.String r1 = r4.encodeNode(r5)
|
||||
javax.xml.namespace.QName r6 = r6.getQName(r1)
|
||||
java.lang.String r1 = r6.getPrefix()
|
||||
java.lang.String r2 = r6.getNamespaceURI()
|
||||
org.codehaus.jettison.mapped.MappedNamespaceConvention r3 = r4.convention
|
||||
java.lang.String r6 = r6.getLocalPart()
|
||||
java.lang.String r6 = r3.createKey(r1, r2, r6)
|
||||
org.codehaus.jettison.AbstractXMLStreamWriter r0 = (org.codehaus.jettison.AbstractXMLStreamWriter) r0
|
||||
java.util.ArrayList r1 = r0.getSerializedAsArrays()
|
||||
boolean r1 = r1.contains(r6)
|
||||
if (r1 != 0) goto L61
|
||||
r0.seriliazeAsArray(r6)
|
||||
L61:
|
||||
r4.startNode(r5)
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.thoughtworks.xstream.io.json.JettisonStaxWriter.startNode(java.lang.String, java.lang.Class):void");
|
||||
}
|
||||
|
||||
public JettisonStaxWriter(QNameMap qNameMap, XMLStreamWriter xMLStreamWriter, boolean z, boolean z2, XmlFriendlyReplacer xmlFriendlyReplacer, MappedNamespaceConvention mappedNamespaceConvention) throws XMLStreamException {
|
||||
this(qNameMap, xMLStreamWriter, z, z2, (NameCoder) xmlFriendlyReplacer, mappedNamespaceConvention);
|
||||
}
|
||||
|
||||
public JettisonStaxWriter(QNameMap qNameMap, XMLStreamWriter xMLStreamWriter, boolean z, boolean z2, MappedNamespaceConvention mappedNamespaceConvention) throws XMLStreamException {
|
||||
super(qNameMap, xMLStreamWriter, z, z2);
|
||||
this.convention = mappedNamespaceConvention;
|
||||
}
|
||||
|
||||
public JettisonStaxWriter(QNameMap qNameMap, XMLStreamWriter xMLStreamWriter, MappedNamespaceConvention mappedNamespaceConvention) throws XMLStreamException {
|
||||
super(qNameMap, xMLStreamWriter);
|
||||
this.convention = mappedNamespaceConvention;
|
||||
}
|
||||
|
||||
public JettisonStaxWriter(QNameMap qNameMap, XMLStreamWriter xMLStreamWriter, NameCoder nameCoder, MappedNamespaceConvention mappedNamespaceConvention) throws XMLStreamException {
|
||||
super(qNameMap, xMLStreamWriter, nameCoder);
|
||||
this.convention = mappedNamespaceConvention;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user