public class org.springframework.http.codec.json.Jackson2JsonEncoder extends org.springframework.http.codec.json.AbstractJackson2Encoder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.http.codec.json.Jackson2JsonEncoder
super_class: org.springframework.http.codec.json.AbstractJackson2Encoder
{
private final com.fasterxml.jackson.core.PrettyPrinter ssePrettyPrinter;
descriptor: Lcom/fasterxml/jackson/core/PrettyPrinter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.json:()Lorg/springframework/http/converter/json/Jackson2ObjectMapperBuilder;
invokevirtual org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.build:()Lcom/fasterxml/jackson/databind/ObjectMapper;
iconst_0
anewarray org.springframework.util.MimeType
invokespecial org.springframework.http.codec.json.Jackson2JsonEncoder.<init>:(Lcom/fasterxml/jackson/databind/ObjectMapper;[Lorg/springframework/util/MimeType;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/codec/json/Jackson2JsonEncoder;
public void <init>(com.fasterxml.jackson.databind.ObjectMapper, org.springframework.util.MimeType[]);
descriptor: (Lcom/fasterxml/jackson/databind/ObjectMapper;[Lorg/springframework/util/MimeType;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.springframework.http.codec.json.AbstractJackson2Encoder.<init>:(Lcom/fasterxml/jackson/databind/ObjectMapper;[Lorg/springframework/util/MimeType;)V
1: aload 0
getstatic org.springframework.http.MediaType.APPLICATION_STREAM_JSON:Lorg/springframework/http/MediaType;
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
invokevirtual org.springframework.http.codec.json.Jackson2JsonEncoder.setStreamingMediaTypes:(Ljava/util/List;)V
2: aload 0
invokestatic org.springframework.http.codec.json.Jackson2JsonEncoder.initSsePrettyPrinter:()Lcom/fasterxml/jackson/core/PrettyPrinter;
putfield org.springframework.http.codec.json.Jackson2JsonEncoder.ssePrettyPrinter:Lcom/fasterxml/jackson/core/PrettyPrinter;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/codec/json/Jackson2JsonEncoder;
0 4 1 mapper Lcom/fasterxml/jackson/databind/ObjectMapper;
0 4 2 mimeTypes [Lorg/springframework/util/MimeType;
MethodParameters:
Name Flags
mapper
mimeTypes
private static com.fasterxml.jackson.core.PrettyPrinter initSsePrettyPrinter();
descriptor: ()Lcom/fasterxml/jackson/core/PrettyPrinter;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: new com.fasterxml.jackson.core.util.DefaultPrettyPrinter
dup
invokespecial com.fasterxml.jackson.core.util.DefaultPrettyPrinter.<init>:()V
astore 0
start local 0 1: aload 0
new com.fasterxml.jackson.core.util.DefaultIndenter
dup
ldc " "
ldc "\ndata:"
invokespecial com.fasterxml.jackson.core.util.DefaultIndenter.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokevirtual com.fasterxml.jackson.core.util.DefaultPrettyPrinter.indentObjectsWith:(Lcom/fasterxml/jackson/core/util/DefaultPrettyPrinter$Indenter;)V
2: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 printer Lcom/fasterxml/jackson/core/util/DefaultPrettyPrinter;
protected com.fasterxml.jackson.databind.ObjectWriter customizeWriter(com.fasterxml.jackson.databind.ObjectWriter, org.springframework.util.MimeType, org.springframework.core.ResolvableType, java.util.Map<java.lang.String, java.lang.Object>);
descriptor: (Lcom/fasterxml/jackson/databind/ObjectWriter;Lorg/springframework/util/MimeType;Lorg/springframework/core/ResolvableType;Ljava/util/Map;)Lcom/fasterxml/jackson/databind/ObjectWriter;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield org.springframework.http.codec.json.Jackson2JsonEncoder.ssePrettyPrinter:Lcom/fasterxml/jackson/core/PrettyPrinter;
ifnull 4
1: getstatic org.springframework.http.MediaType.TEXT_EVENT_STREAM:Lorg/springframework/http/MediaType;
aload 2
invokevirtual org.springframework.http.MediaType.isCompatibleWith:(Lorg/springframework/util/MimeType;)Z
ifeq 4
2: aload 1
invokevirtual com.fasterxml.jackson.databind.ObjectWriter.getConfig:()Lcom/fasterxml/jackson/databind/SerializationConfig;
getstatic com.fasterxml.jackson.databind.SerializationFeature.INDENT_OUTPUT:Lcom/fasterxml/jackson/databind/SerializationFeature;
invokevirtual com.fasterxml.jackson.databind.SerializationConfig.isEnabled:(Lcom/fasterxml/jackson/databind/SerializationFeature;)Z
ifeq 4
3: aload 1
aload 0
getfield org.springframework.http.codec.json.Jackson2JsonEncoder.ssePrettyPrinter:Lcom/fasterxml/jackson/core/PrettyPrinter;
invokevirtual com.fasterxml.jackson.databind.ObjectWriter.with:(Lcom/fasterxml/jackson/core/PrettyPrinter;)Lcom/fasterxml/jackson/databind/ObjectWriter;
goto 5
StackMap locals:
StackMap stack:
4: aload 1
5: StackMap locals:
StackMap stack: com.fasterxml.jackson.databind.ObjectWriter
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/http/codec/json/Jackson2JsonEncoder;
0 6 1 writer Lcom/fasterxml/jackson/databind/ObjectWriter;
0 6 2 mimeType Lorg/springframework/util/MimeType;
0 6 3 elementType Lorg/springframework/core/ResolvableType;
0 6 4 hints Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
Signature: (Lcom/fasterxml/jackson/databind/ObjectWriter;Lorg/springframework/util/MimeType;Lorg/springframework/core/ResolvableType;Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)Lcom/fasterxml/jackson/databind/ObjectWriter;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
3:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
writer
mimeType
elementType
hints
}
SourceFile: "Jackson2JsonEncoder.java"
InnerClasses:
public abstract Indenter = com.fasterxml.jackson.core.util.DefaultPrettyPrinter$Indenter of com.fasterxml.jackson.core.util.DefaultPrettyPrinter