public abstract class org.springframework.http.converter.json.AbstractJsonHttpMessageConverter extends org.springframework.http.converter.AbstractGenericHttpMessageConverter<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.springframework.http.converter.json.AbstractJsonHttpMessageConverter
super_class: org.springframework.http.converter.AbstractGenericHttpMessageConverter
{
public static final java.nio.charset.Charset DEFAULT_CHARSET;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private java.lang.String jsonPrefix;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
putstatic org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.DEFAULT_CHARSET:Ljava/nio/charset/Charset;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=1, args_size=1
start local 0 0: aload 0
iconst_2
anewarray org.springframework.http.MediaType
dup
iconst_0
getstatic org.springframework.http.MediaType.APPLICATION_JSON:Lorg/springframework/http/MediaType;
aastore
dup
iconst_1
new org.springframework.http.MediaType
dup
ldc "application"
ldc "*+json"
invokespecial org.springframework.http.MediaType.<init>:(Ljava/lang/String;Ljava/lang/String;)V
aastore
invokespecial org.springframework.http.converter.AbstractGenericHttpMessageConverter.<init>:([Lorg/springframework/http/MediaType;)V
1: aload 0
getstatic org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.DEFAULT_CHARSET:Ljava/nio/charset/Charset;
invokevirtual org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.setDefaultCharset:(Ljava/nio/charset/Charset;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/converter/json/AbstractJsonHttpMessageConverter;
public void setJsonPrefix(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.jsonPrefix:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/converter/json/AbstractJsonHttpMessageConverter;
0 2 1 jsonPrefix Ljava/lang/String;
MethodParameters:
Name Flags
jsonPrefix
public void setPrefixJson(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ifeq 1
ldc ")]}', "
goto 2
StackMap locals:
StackMap stack: org.springframework.http.converter.json.AbstractJsonHttpMessageConverter
1: aconst_null
StackMap locals: org.springframework.http.converter.json.AbstractJsonHttpMessageConverter int
StackMap stack: org.springframework.http.converter.json.AbstractJsonHttpMessageConverter java.lang.String
2: putfield org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.jsonPrefix:Ljava/lang/String;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/converter/json/AbstractJsonHttpMessageConverter;
0 4 1 prefixJson Z
MethodParameters:
Name Flags
prefixJson
public final read(java.lang.reflect.Type, java.lang.Class<?>, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/lang/reflect/Type;Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokestatic org.springframework.core.GenericTypeResolver.resolveType:(Ljava/lang/reflect/Type;Ljava/lang/Class;)Ljava/lang/reflect/Type;
aload 3
invokevirtual org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.readResolved:(Ljava/lang/reflect/Type;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/json/AbstractJsonHttpMessageConverter;
0 1 1 type Ljava/lang/reflect/Type;
0 1 2 contextClass Ljava/lang/Class<*>;
0 1 3 inputMessage Lorg/springframework/http/HttpInputMessage;
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotReadableException
Signature: (Ljava/lang/reflect/Type;Ljava/lang/Class<*>;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/Object;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
MethodParameters:
Name Flags
type
contextClass
inputMessage
protected final readInternal(java.lang.Class<?>, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/Object;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.readResolved:(Ljava/lang/reflect/Type;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/json/AbstractJsonHttpMessageConverter;
0 1 1 clazz Ljava/lang/Class<*>;
0 1 2 inputMessage Lorg/springframework/http/HttpInputMessage;
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotReadableException
Signature: (Ljava/lang/Class<*>;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/Object;
MethodParameters:
Name Flags
clazz
inputMessage
private java.lang.Object readResolved(java.lang.reflect.Type, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/lang/reflect/Type;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.getReader:(Lorg/springframework/http/HttpInputMessage;)Ljava/io/Reader;
astore 3
start local 3 1: aload 0
aload 1
aload 3
invokevirtual org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.readInternal:(Ljava/lang/reflect/Type;Ljava/io/Reader;)Ljava/lang/Object;
2: areturn
3: StackMap locals: org.springframework.http.converter.json.AbstractJsonHttpMessageConverter java.lang.reflect.Type org.springframework.http.HttpInputMessage java.io.Reader
StackMap stack: java.lang.Exception
astore 4
start local 4 4: new org.springframework.http.converter.HttpMessageNotReadableException
dup
new java.lang.StringBuilder
dup
ldc "Could not read JSON: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
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 4
aload 2
invokespecial org.springframework.http.converter.HttpMessageNotReadableException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;Lorg/springframework/http/HttpInputMessage;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/http/converter/json/AbstractJsonHttpMessageConverter;
0 5 1 resolvedType Ljava/lang/reflect/Type;
0 5 2 inputMessage Lorg/springframework/http/HttpInputMessage;
1 5 3 reader Ljava/io/Reader;
4 5 4 ex Ljava/lang/Exception;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotReadableException
MethodParameters:
Name Flags
resolvedType
inputMessage
protected final void writeInternal(java.lang.Object, java.lang.reflect.Type, org.springframework.http.HttpOutputMessage);
descriptor: (Ljava/lang/Object;Ljava/lang/reflect/Type;Lorg/springframework/http/HttpOutputMessage;)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokestatic org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.getWriter:(Lorg/springframework/http/HttpOutputMessage;)Ljava/io/Writer;
astore 4
start local 4 1: aload 0
getfield org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.jsonPrefix:Ljava/lang/String;
ifnull 3
2: aload 4
aload 0
getfield org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.jsonPrefix:Ljava/lang/String;
invokevirtual java.io.Writer.append:(Ljava/lang/CharSequence;)Ljava/io/Writer;
pop
3: StackMap locals: java.io.Writer
StackMap stack:
aload 0
aload 1
aload 2
aload 4
invokevirtual org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.writeInternal:(Ljava/lang/Object;Ljava/lang/reflect/Type;Ljava/io/Writer;)V
4: goto 7
5: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 6: new org.springframework.http.converter.HttpMessageNotWritableException
dup
new java.lang.StringBuilder
dup
ldc "Could not write JSON: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
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 5
invokespecial org.springframework.http.converter.HttpMessageNotWritableException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 7: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.io.Writer.flush:()V
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/http/converter/json/AbstractJsonHttpMessageConverter;
0 9 1 o Ljava/lang/Object;
0 9 2 type Ljava/lang/reflect/Type;
0 9 3 outputMessage Lorg/springframework/http/HttpOutputMessage;
1 9 4 writer Ljava/io/Writer;
6 7 5 ex Ljava/lang/Exception;
Exception table:
from to target type
3 4 5 Class java.lang.Exception
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotWritableException
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
MethodParameters:
Name Flags
o
type
outputMessage
protected abstract java.lang.Object readInternal(java.lang.reflect.Type, java.io.Reader);
descriptor: (Ljava/lang/reflect/Type;Ljava/io/Reader;)Ljava/lang/Object;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
resolvedType
reader
protected abstract void writeInternal(java.lang.Object, java.lang.reflect.Type, java.io.Writer);
descriptor: (Ljava/lang/Object;Ljava/lang/reflect/Type;Ljava/io/Writer;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.lang.Exception
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
MethodParameters:
Name Flags
o
type
writer
private static java.io.Reader getReader(org.springframework.http.HttpInputMessage);
descriptor: (Lorg/springframework/http/HttpInputMessage;)Ljava/io/Reader;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.io.InputStreamReader
dup
aload 0
invokeinterface org.springframework.http.HttpInputMessage.getBody:()Ljava/io/InputStream;
aload 0
invokeinterface org.springframework.http.HttpInputMessage.getHeaders:()Lorg/springframework/http/HttpHeaders;
invokestatic org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.getCharset:(Lorg/springframework/http/HttpHeaders;)Ljava/nio/charset/Charset;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 inputMessage Lorg/springframework/http/HttpInputMessage;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inputMessage
private static java.io.Writer getWriter(org.springframework.http.HttpOutputMessage);
descriptor: (Lorg/springframework/http/HttpOutputMessage;)Ljava/io/Writer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.io.OutputStreamWriter
dup
aload 0
invokeinterface org.springframework.http.HttpOutputMessage.getBody:()Ljava/io/OutputStream;
aload 0
invokeinterface org.springframework.http.HttpOutputMessage.getHeaders:()Lorg/springframework/http/HttpHeaders;
invokestatic org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.getCharset:(Lorg/springframework/http/HttpHeaders;)Ljava/nio/charset/Charset;
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 outputMessage Lorg/springframework/http/HttpOutputMessage;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
outputMessage
private static java.nio.charset.Charset (org.springframework.http.HttpHeaders);
descriptor: (Lorg/springframework/http/HttpHeaders;)Ljava/nio/charset/Charset;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.http.HttpHeaders.getContentType:()Lorg/springframework/http/MediaType;
ifnull 1
aload 0
invokevirtual org.springframework.http.HttpHeaders.getContentType:()Lorg/springframework/http/MediaType;
invokevirtual org.springframework.http.MediaType.getCharset:()Ljava/nio/charset/Charset;
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: java.nio.charset.Charset
2: astore 1
start local 1 3: aload 1
ifnull 4
aload 1
goto 5
StackMap locals: java.nio.charset.Charset
StackMap stack:
4: getstatic org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.DEFAULT_CHARSET:Ljava/nio/charset/Charset;
StackMap locals:
StackMap stack: java.nio.charset.Charset
5: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 headers Lorg/springframework/http/HttpHeaders;
3 6 1 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
headers
}
Signature: Lorg/springframework/http/converter/AbstractGenericHttpMessageConverter<Ljava/lang/Object;>;
SourceFile: "AbstractJsonHttpMessageConverter.java"