public class org.springframework.http.codec.protobuf.ProtobufEncoder extends org.springframework.http.codec.protobuf.ProtobufCodecSupport implements org.springframework.http.codec.HttpMessageEncoder<com.google.protobuf.Message>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.http.codec.protobuf.ProtobufEncoder
super_class: org.springframework.http.codec.protobuf.ProtobufCodecSupport
{
private static final java.util.List<org.springframework.http.MediaType> streamingMediaTypes;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Lorg/springframework/http/MediaType;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.springframework.http.codec.protobuf.ProtobufEncoder.MIME_TYPES:Ljava/util/List;
1: invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
2: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/springframework/http/codec/protobuf/ProtobufEncoder.lambda$0(Lorg/springframework/util/MimeType;)Lorg/springframework/http/MediaType; (6)
(Lorg/springframework/util/MimeType;)Lorg/springframework/http/MediaType;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
4: putstatic org.springframework.http.codec.protobuf.ProtobufEncoder.streamingMediaTypes:Ljava/util/List;
5: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.springframework.http.codec.protobuf.ProtobufCodecSupport.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/codec/protobuf/ProtobufEncoder;
public boolean canEncode(org.springframework.core.ResolvableType, org.springframework.util.MimeType);
descriptor: (Lorg/springframework/core/ResolvableType;Lorg/springframework/util/MimeType;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: ldc Lcom/google/protobuf/Message;
aload 1
invokevirtual org.springframework.core.ResolvableType.toClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 1
aload 0
aload 2
invokevirtual org.springframework.http.codec.protobuf.ProtobufEncoder.supportsMimeType:(Lorg/springframework/util/MimeType;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/codec/protobuf/ProtobufEncoder;
0 2 1 elementType Lorg/springframework/core/ResolvableType;
0 2 2 mimeType Lorg/springframework/util/MimeType;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
elementType
mimeType
public reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> encode(org.reactivestreams.Publisher<? extends com.google.protobuf.Message>, org.springframework.core.io.buffer.DataBufferFactory, org.springframework.core.ResolvableType, org.springframework.util.MimeType, java.util.Map<java.lang.String, java.lang.Object>);
descriptor: (Lorg/reactivestreams/Publisher;Lorg/springframework/core/io/buffer/DataBufferFactory;Lorg/springframework/core/ResolvableType;Lorg/springframework/util/MimeType;Ljava/util/Map;)Lreactor/core/publisher/Flux;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
invokestatic reactor.core.publisher.Flux.from:(Lorg/reactivestreams/Publisher;)Lreactor/core/publisher/Flux;
1: aload 0
aload 2
aload 1
invokedynamic apply(Lorg/springframework/http/codec/protobuf/ProtobufEncoder;Lorg/springframework/core/io/buffer/DataBufferFactory;Lorg/reactivestreams/Publisher;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/springframework/http/codec/protobuf/ProtobufEncoder.lambda$1(Lorg/springframework/core/io/buffer/DataBufferFactory;Lorg/reactivestreams/Publisher;Lcom/google/protobuf/Message;)Lorg/springframework/core/io/buffer/DataBuffer; (7)
(Lcom/google/protobuf/Message;)Lorg/springframework/core/io/buffer/DataBuffer;
invokevirtual reactor.core.publisher.Flux.map:(Ljava/util/function/Function;)Lreactor/core/publisher/Flux;
2: areturn
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 3 0 this Lorg/springframework/http/codec/protobuf/ProtobufEncoder;
0 3 1 inputStream Lorg/reactivestreams/Publisher<+Lcom/google/protobuf/Message;>;
0 3 2 bufferFactory Lorg/springframework/core/io/buffer/DataBufferFactory;
0 3 3 elementType Lorg/springframework/core/ResolvableType;
0 3 4 mimeType Lorg/springframework/util/MimeType;
0 3 5 hints Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
Signature: (Lorg/reactivestreams/Publisher<+Lcom/google/protobuf/Message;>;Lorg/springframework/core/io/buffer/DataBufferFactory;Lorg/springframework/core/ResolvableType;Lorg/springframework/util/MimeType;Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)Lreactor/core/publisher/Flux<Lorg/springframework/core/io/buffer/DataBuffer;>;
RuntimeVisibleParameterAnnotations:
0:
1:
2:
3:
org.springframework.lang.Nullable()
4:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
inputStream
bufferFactory
elementType
mimeType
hints
private org.springframework.core.io.buffer.DataBuffer encodeMessage(com.google.protobuf.Message, org.springframework.core.io.buffer.DataBufferFactory, boolean);
descriptor: (Lcom/google/protobuf/Message;Lorg/springframework/core/io/buffer/DataBufferFactory;Z)Lorg/springframework/core/io/buffer/DataBuffer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokeinterface org.springframework.core.io.buffer.DataBufferFactory.allocateBuffer:()Lorg/springframework/core/io/buffer/DataBuffer;
astore 4
start local 4 1: aload 4
invokeinterface org.springframework.core.io.buffer.DataBuffer.asOutputStream:()Ljava/io/OutputStream;
astore 5
start local 5 2: iload 3
ifeq 5
3: aload 1
aload 5
invokeinterface com.google.protobuf.Message.writeDelimitedTo:(Ljava/io/OutputStream;)V
4: goto 6
5: StackMap locals: org.springframework.core.io.buffer.DataBuffer java.io.OutputStream
StackMap stack:
aload 1
aload 5
invokeinterface com.google.protobuf.Message.writeTo:(Ljava/io/OutputStream;)V
6: StackMap locals:
StackMap stack:
aload 4
7: areturn
8: StackMap locals:
StackMap stack: java.io.IOException
astore 6
start local 6 9: new java.lang.IllegalStateException
dup
ldc "Unexpected I/O error while writing to data buffer"
aload 6
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 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 10 0 this Lorg/springframework/http/codec/protobuf/ProtobufEncoder;
0 10 1 message Lcom/google/protobuf/Message;
0 10 2 bufferFactory Lorg/springframework/core/io/buffer/DataBufferFactory;
0 10 3 streaming Z
1 10 4 buffer Lorg/springframework/core/io/buffer/DataBuffer;
2 10 5 outputStream Ljava/io/OutputStream;
9 10 6 ex Ljava/io/IOException;
Exception table:
from to target type
2 7 8 Class java.io.IOException
MethodParameters:
Name Flags
message
bufferFactory
streaming
public java.util.List<org.springframework.http.MediaType> getStreamingMediaTypes();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.springframework.http.codec.protobuf.ProtobufEncoder.streamingMediaTypes:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/codec/protobuf/ProtobufEncoder;
Signature: ()Ljava/util/List<Lorg/springframework/http/MediaType;>;
public java.util.List<org.springframework.util.MimeType> getEncodableMimeTypes();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.http.codec.protobuf.ProtobufEncoder.getMimeTypes:()Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/codec/protobuf/ProtobufEncoder;
Signature: ()Ljava/util/List<Lorg/springframework/util/MimeType;>;
private static org.springframework.http.MediaType lambda$0(org.springframework.util.MimeType);
descriptor: (Lorg/springframework/util/MimeType;)Lorg/springframework/http/MediaType;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: new org.springframework.http.MediaType
dup
aload 0
invokevirtual org.springframework.util.MimeType.getType:()Ljava/lang/String;
aload 0
invokevirtual org.springframework.util.MimeType.getSubtype:()Ljava/lang/String;
1: ldc "delimited"
ldc "true"
invokestatic java.util.Collections.singletonMap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
2: invokespecial org.springframework.http.MediaType.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 mimeType Lorg/springframework/util/MimeType;
private org.springframework.core.io.buffer.DataBuffer lambda$1(org.springframework.core.io.buffer.DataBufferFactory, org.reactivestreams.Publisher, com.google.protobuf.Message);
descriptor: (Lorg/springframework/core/io/buffer/DataBufferFactory;Lorg/reactivestreams/Publisher;Lcom/google/protobuf/Message;)Lorg/springframework/core/io/buffer/DataBuffer;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 3 0: aload 0
aload 3
aload 1
aload 2
instanceof reactor.core.publisher.Mono
ifeq 1
iconst_0
goto 2
StackMap locals: org.springframework.http.codec.protobuf.ProtobufEncoder org.springframework.core.io.buffer.DataBufferFactory org.reactivestreams.Publisher com.google.protobuf.Message
StackMap stack: org.springframework.http.codec.protobuf.ProtobufEncoder com.google.protobuf.Message org.springframework.core.io.buffer.DataBufferFactory
1: iconst_1
StackMap locals: org.springframework.http.codec.protobuf.ProtobufEncoder org.springframework.core.io.buffer.DataBufferFactory org.reactivestreams.Publisher com.google.protobuf.Message
StackMap stack: org.springframework.http.codec.protobuf.ProtobufEncoder com.google.protobuf.Message org.springframework.core.io.buffer.DataBufferFactory int
2: invokevirtual org.springframework.http.codec.protobuf.ProtobufEncoder.encodeMessage:(Lcom/google/protobuf/Message;Lorg/springframework/core/io/buffer/DataBufferFactory;Z)Lorg/springframework/core/io/buffer/DataBuffer;
areturn
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/codec/protobuf/ProtobufEncoder;
0 3 3 message Lcom/google/protobuf/Message;
}
Signature: Lorg/springframework/http/codec/protobuf/ProtobufCodecSupport;Lorg/springframework/http/codec/HttpMessageEncoder<Lcom/google/protobuf/Message;>;
SourceFile: "ProtobufEncoder.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles