class org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport implements org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufFormatSupport
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport
super_class: java.lang.Object
{
private final com.google.protobuf.util.JsonFormat$Parser parser;
descriptor: Lcom/google/protobuf/util/JsonFormat$Parser;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.google.protobuf.util.JsonFormat$Printer printer;
descriptor: Lcom/google/protobuf/util/JsonFormat$Printer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(com.google.protobuf.util.JsonFormat$Parser, com.google.protobuf.util.JsonFormat$Printer);
descriptor: (Lcom/google/protobuf/util/JsonFormat$Parser;Lcom/google/protobuf/util/JsonFormat$Printer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
ifnull 2
aload 1
goto 3
StackMap locals: org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport com.google.protobuf.util.JsonFormat$Parser com.google.protobuf.util.JsonFormat$Printer
StackMap stack: org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport
2: invokestatic com.google.protobuf.util.JsonFormat.parser:()Lcom/google/protobuf/util/JsonFormat$Parser;
StackMap locals: org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport com.google.protobuf.util.JsonFormat$Parser com.google.protobuf.util.JsonFormat$Printer
StackMap stack: org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport com.google.protobuf.util.JsonFormat$Parser
3: putfield org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport.parser:Lcom/google/protobuf/util/JsonFormat$Parser;
4: aload 0
aload 2
ifnull 5
aload 2
goto 6
StackMap locals:
StackMap stack: org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport
5: invokestatic com.google.protobuf.util.JsonFormat.printer:()Lcom/google/protobuf/util/JsonFormat$Printer;
StackMap locals: org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport com.google.protobuf.util.JsonFormat$Parser com.google.protobuf.util.JsonFormat$Printer
StackMap stack: org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport com.google.protobuf.util.JsonFormat$Printer
6: putfield org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport.printer:Lcom/google/protobuf/util/JsonFormat$Printer;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/http/converter/protobuf/ProtobufHttpMessageConverter$ProtobufJavaUtilSupport;
0 8 1 parser Lcom/google/protobuf/util/JsonFormat$Parser;
0 8 2 printer Lcom/google/protobuf/util/JsonFormat$Printer;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
parser
printer
public org.springframework.http.MediaType[] supportedMediaTypes();
descriptor: ()[Lorg/springframework/http/MediaType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_3
anewarray org.springframework.http.MediaType
dup
iconst_0
getstatic org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter.PROTOBUF:Lorg/springframework/http/MediaType;
aastore
dup
iconst_1
getstatic org.springframework.http.MediaType.TEXT_PLAIN:Lorg/springframework/http/MediaType;
aastore
dup
iconst_2
getstatic org.springframework.http.MediaType.APPLICATION_JSON:Lorg/springframework/http/MediaType;
aastore
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/protobuf/ProtobufHttpMessageConverter$ProtobufJavaUtilSupport;
public boolean supportsWriteOnly(org.springframework.http.MediaType);
descriptor: (Lorg/springframework/http/MediaType;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/protobuf/ProtobufHttpMessageConverter$ProtobufJavaUtilSupport;
0 1 1 mediaType Lorg/springframework/http/MediaType;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
mediaType
public void merge(java.io.InputStream, java.nio.charset.Charset, org.springframework.http.MediaType, com.google.protobuf.ExtensionRegistry, com.google.protobuf.Message$Builder);
descriptor: (Ljava/io/InputStream;Ljava/nio/charset/Charset;Lorg/springframework/http/MediaType;Lcom/google/protobuf/ExtensionRegistry;Lcom/google/protobuf/Message$Builder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 3
getstatic org.springframework.http.MediaType.APPLICATION_JSON:Lorg/springframework/http/MediaType;
invokevirtual org.springframework.http.MediaType.isCompatibleWith:(Lorg/springframework/http/MediaType;)Z
ifeq 4
1: new java.io.InputStreamReader
dup
aload 1
aload 2
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
astore 6
start local 6 2: aload 0
getfield org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport.parser:Lcom/google/protobuf/util/JsonFormat$Parser;
aload 6
aload 5
invokevirtual com.google.protobuf.util.JsonFormat$Parser.merge:(Ljava/io/Reader;Lcom/google/protobuf/Message$Builder;)V
end local 6 3: goto 7
4: StackMap locals:
StackMap stack:
new org.springframework.http.converter.HttpMessageConversionException
dup
5: new java.lang.StringBuilder
dup
ldc "protobuf-java-util does not support parsing "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial org.springframework.http.converter.HttpMessageConversionException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/http/converter/protobuf/ProtobufHttpMessageConverter$ProtobufJavaUtilSupport;
0 8 1 input Ljava/io/InputStream;
0 8 2 charset Ljava/nio/charset/Charset;
0 8 3 contentType Lorg/springframework/http/MediaType;
0 8 4 extensionRegistry Lcom/google/protobuf/ExtensionRegistry;
0 8 5 builder Lcom/google/protobuf/Message$Builder;
2 3 6 reader Ljava/io/InputStreamReader;
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageConversionException
MethodParameters:
Name Flags
input
charset
contentType
extensionRegistry
builder
public void print(com.google.protobuf.Message, java.io.OutputStream, org.springframework.http.MediaType, java.nio.charset.Charset);
descriptor: (Lcom/google/protobuf/Message;Ljava/io/OutputStream;Lorg/springframework/http/MediaType;Ljava/nio/charset/Charset;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 3
getstatic org.springframework.http.MediaType.APPLICATION_JSON:Lorg/springframework/http/MediaType;
invokevirtual org.springframework.http.MediaType.isCompatibleWith:(Lorg/springframework/http/MediaType;)Z
ifeq 5
1: new java.io.OutputStreamWriter
dup
aload 2
aload 4
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
astore 5
start local 5 2: aload 0
getfield org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport.printer:Lcom/google/protobuf/util/JsonFormat$Printer;
aload 1
aload 5
invokevirtual com.google.protobuf.util.JsonFormat$Printer.appendTo:(Lcom/google/protobuf/MessageOrBuilder;Ljava/lang/Appendable;)V
3: aload 5
invokevirtual java.io.OutputStreamWriter.flush:()V
end local 5 4: goto 8
5: StackMap locals:
StackMap stack:
new org.springframework.http.converter.HttpMessageConversionException
dup
6: new java.lang.StringBuilder
dup
ldc "protobuf-java-util does not support printing "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial org.springframework.http.converter.HttpMessageConversionException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
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/protobuf/ProtobufHttpMessageConverter$ProtobufJavaUtilSupport;
0 9 1 message Lcom/google/protobuf/Message;
0 9 2 output Ljava/io/OutputStream;
0 9 3 contentType Lorg/springframework/http/MediaType;
0 9 4 charset Ljava/nio/charset/Charset;
2 4 5 writer Ljava/io/OutputStreamWriter;
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageConversionException
MethodParameters:
Name Flags
message
output
contentType
charset
}
SourceFile: "ProtobufHttpMessageConverter.java"
NestHost: org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter
InnerClasses:
public abstract Builder = com.google.protobuf.Message$Builder of com.google.protobuf.Message
public Parser = com.google.protobuf.util.JsonFormat$Parser of com.google.protobuf.util.JsonFormat
public Printer = com.google.protobuf.util.JsonFormat$Printer of com.google.protobuf.util.JsonFormat
abstract ProtobufFormatSupport = org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufFormatSupport of org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter
ProtobufJavaUtilSupport = org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter$ProtobufJavaUtilSupport of org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter