public class com.fasterxml.jackson.databind.ext.DOMSerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<org.w3c.dom.Node>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.fasterxml.jackson.databind.ext.DOMSerializer
super_class: com.fasterxml.jackson.databind.ser.std.StdSerializer
{
protected final javax.xml.transform.TransformerFactory transformerFactory;
descriptor: Ljavax/xml/transform/TransformerFactory;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
ldc Lorg/w3c/dom/Node;
invokespecial com.fasterxml.jackson.databind.ser.std.StdSerializer.<init>:(Ljava/lang/Class;)V
1: aload 0
invokestatic javax.xml.transform.TransformerFactory.newInstance:()Ljavax/xml/transform/TransformerFactory;
putfield com.fasterxml.jackson.databind.ext.DOMSerializer.transformerFactory:Ljavax/xml/transform/TransformerFactory;
2: aload 0
getfield com.fasterxml.jackson.databind.ext.DOMSerializer.transformerFactory:Ljavax/xml/transform/TransformerFactory;
ldc "http://javax.xml.XMLConstants/feature/secure-processing"
iconst_1
invokevirtual javax.xml.transform.TransformerFactory.setFeature:(Ljava/lang/String;Z)V
3: goto 6
StackMap locals: com.fasterxml.jackson.databind.ext.DOMSerializer
StackMap stack: java.lang.Exception
4: astore 1
start local 1 5: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Could not instantiate `TransformerFactory`: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/fasterxml/jackson/databind/ext/DOMSerializer;
5 6 1 e Ljava/lang/Exception;
Exception table:
from to target type
1 3 4 Class java.lang.Exception
public void serialize(org.w3c.dom.Node, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider);
descriptor: (Lorg/w3c/dom/Node;Lcom/fasterxml/jackson/core/JsonGenerator;Lcom/fasterxml/jackson/databind/SerializerProvider;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.fasterxml.jackson.databind.ext.DOMSerializer.transformerFactory:Ljavax/xml/transform/TransformerFactory;
invokevirtual javax.xml.transform.TransformerFactory.newTransformer:()Ljavax/xml/transform/Transformer;
astore 4
start local 4 1: aload 4
ldc "omit-xml-declaration"
ldc "yes"
invokevirtual javax.xml.transform.Transformer.setOutputProperty:(Ljava/lang/String;Ljava/lang/String;)V
2: aload 4
ldc "indent"
ldc "no"
invokevirtual javax.xml.transform.Transformer.setOutputProperty:(Ljava/lang/String;Ljava/lang/String;)V
3: new javax.xml.transform.stream.StreamResult
dup
new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
invokespecial javax.xml.transform.stream.StreamResult.<init>:(Ljava/io/Writer;)V
astore 5
start local 5 4: aload 4
new javax.xml.transform.dom.DOMSource
dup
aload 1
invokespecial javax.xml.transform.dom.DOMSource.<init>:(Lorg/w3c/dom/Node;)V
aload 5
invokevirtual javax.xml.transform.Transformer.transform:(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V
5: aload 2
aload 5
invokevirtual javax.xml.transform.stream.StreamResult.getWriter:()Ljava/io/Writer;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeString:(Ljava/lang/String;)V
end local 5 end local 4 6: goto 11
StackMap locals:
StackMap stack: javax.xml.transform.TransformerConfigurationException
7: astore 4
start local 4 8: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Could not create XML Transformer for writing DOM `Node` value: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual javax.xml.transform.TransformerConfigurationException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 9: StackMap locals:
StackMap stack: javax.xml.transform.TransformerException
astore 4
start local 4 10: aload 3
aload 4
ldc "DOM `Node` value serialization failed: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4
invokevirtual javax.xml.transform.TransformerException.getMessage:()Ljava/lang/String;
aastore
invokevirtual com.fasterxml.jackson.databind.SerializerProvider.reportMappingProblem:(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
end local 4 11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/fasterxml/jackson/databind/ext/DOMSerializer;
0 12 1 value Lorg/w3c/dom/Node;
0 12 2 g Lcom/fasterxml/jackson/core/JsonGenerator;
0 12 3 provider Lcom/fasterxml/jackson/databind/SerializerProvider;
1 6 4 transformer Ljavax/xml/transform/Transformer;
4 6 5 result Ljavax/xml/transform/stream/StreamResult;
8 9 4 e Ljavax/xml/transform/TransformerConfigurationException;
10 11 4 e Ljavax/xml/transform/TransformerException;
Exception table:
from to target type
0 6 7 Class javax.xml.transform.TransformerConfigurationException
0 6 9 Class javax.xml.transform.TransformerException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
value
g
provider
public com.fasterxml.jackson.databind.JsonNode getSchema(com.fasterxml.jackson.databind.SerializerProvider, java.lang.reflect.Type);
descriptor: (Lcom/fasterxml/jackson/databind/SerializerProvider;Ljava/lang/reflect/Type;)Lcom/fasterxml/jackson/databind/JsonNode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "string"
iconst_1
invokevirtual com.fasterxml.jackson.databind.ext.DOMSerializer.createSchemaNode:(Ljava/lang/String;Z)Lcom/fasterxml/jackson/databind/node/ObjectNode;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/fasterxml/jackson/databind/ext/DOMSerializer;
0 1 1 provider Lcom/fasterxml/jackson/databind/SerializerProvider;
0 1 2 typeHint Ljava/lang/reflect/Type;
MethodParameters:
Name Flags
provider
typeHint
public void acceptJsonFormatVisitor(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper, com.fasterxml.jackson.databind.JavaType);
descriptor: (Lcom/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper;Lcom/fasterxml/jackson/databind/JavaType;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 1
aload 1
aload 2
invokeinterface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper.expectAnyFormat:(Lcom/fasterxml/jackson/databind/JavaType;)Lcom/fasterxml/jackson/databind/jsonFormatVisitors/JsonAnyFormatVisitor;
pop
1: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/fasterxml/jackson/databind/ext/DOMSerializer;
0 2 1 visitor Lcom/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper;
0 2 2 typeHint Lcom/fasterxml/jackson/databind/JavaType;
Exceptions:
throws com.fasterxml.jackson.databind.JsonMappingException
MethodParameters:
Name Flags
visitor
typeHint
public void serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider);
descriptor: (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Lcom/fasterxml/jackson/databind/SerializerProvider;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
checkcast org.w3c.dom.Node
aload 2
aload 3
invokevirtual com.fasterxml.jackson.databind.ext.DOMSerializer.serialize:(Lorg/w3c/dom/Node;Lcom/fasterxml/jackson/core/JsonGenerator;Lcom/fasterxml/jackson/databind/SerializerProvider;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
}
Signature: Lcom/fasterxml/jackson/databind/ser/std/StdSerializer<Lorg/w3c/dom/Node;>;
SourceFile: "DOMSerializer.java"