public class org.springframework.http.converter.ByteArrayHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<byte[]>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.http.converter.ByteArrayHttpMessageConverter
super_class: org.springframework.http.converter.AbstractHttpMessageConverter
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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_OCTET_STREAM:Lorg/springframework/http/MediaType;
aastore
dup
iconst_1
getstatic org.springframework.http.MediaType.ALL:Lorg/springframework/http/MediaType;
aastore
invokespecial org.springframework.http.converter.AbstractHttpMessageConverter.<init>:([Lorg/springframework/http/MediaType;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/converter/ByteArrayHttpMessageConverter;
public boolean supports(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: ldc [B
aload 1
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/converter/ByteArrayHttpMessageConverter;
0 2 1 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz
public byte[] readInternal(java.lang.Class<? extends byte[]>, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.springframework.http.HttpInputMessage.getHeaders:()Lorg/springframework/http/HttpHeaders;
invokevirtual org.springframework.http.HttpHeaders.getContentLength:()J
lstore 3
start local 3 1: new java.io.ByteArrayOutputStream
dup
lload 3
lconst_0
lcmp
iflt 2
lload 3
l2i
goto 3
StackMap locals: org.springframework.http.converter.ByteArrayHttpMessageConverter java.lang.Class org.springframework.http.HttpInputMessage long
StackMap stack: new 1 new 1
2: sipush 4096
StackMap locals: org.springframework.http.converter.ByteArrayHttpMessageConverter java.lang.Class org.springframework.http.HttpInputMessage long
StackMap stack: new 1 new 1 int
3: invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
4: astore 5
start local 5 5: aload 2
invokeinterface org.springframework.http.HttpInputMessage.getBody:()Ljava/io/InputStream;
aload 5
invokestatic org.springframework.util.StreamUtils.copy:(Ljava/io/InputStream;Ljava/io/OutputStream;)I
pop
6: aload 5
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/http/converter/ByteArrayHttpMessageConverter;
0 7 1 clazz Ljava/lang/Class<+[B>;
0 7 2 inputMessage Lorg/springframework/http/HttpInputMessage;
1 7 3 contentLength J
5 7 5 bos Ljava/io/ByteArrayOutputStream;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/Class<+[B>;Lorg/springframework/http/HttpInputMessage;)[B
MethodParameters:
Name Flags
clazz
inputMessage
protected java.lang.Long getContentLength(byte[], org.springframework.http.MediaType);
descriptor: ([BLorg/springframework/http/MediaType;)Ljava/lang/Long;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
arraylength
i2l
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/ByteArrayHttpMessageConverter;
0 1 1 bytes [B
0 1 2 contentType Lorg/springframework/http/MediaType;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
bytes
contentType
protected void writeInternal(byte[], org.springframework.http.HttpOutputMessage);
descriptor: ([BLorg/springframework/http/HttpOutputMessage;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokeinterface org.springframework.http.HttpOutputMessage.getBody:()Ljava/io/OutputStream;
invokestatic org.springframework.util.StreamUtils.copy:([BLjava/io/OutputStream;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/converter/ByteArrayHttpMessageConverter;
0 2 1 bytes [B
0 2 2 outputMessage Lorg/springframework/http/HttpOutputMessage;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bytes
outputMessage
public java.lang.Object readInternal(java.lang.Class, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast java.lang.Class
aload 2
invokevirtual org.springframework.http.converter.ByteArrayHttpMessageConverter.readInternal:(Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)[B
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotReadableException
protected java.lang.Long getContentLength(java.lang.Object, org.springframework.http.MediaType);
descriptor: (Ljava/lang/Object;Lorg/springframework/http/MediaType;)Ljava/lang/Long;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast byte[]
aload 2
invokevirtual org.springframework.http.converter.ByteArrayHttpMessageConverter.getContentLength:([BLorg/springframework/http/MediaType;)Ljava/lang/Long;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
protected void writeInternal(java.lang.Object, org.springframework.http.HttpOutputMessage);
descriptor: (Ljava/lang/Object;Lorg/springframework/http/HttpOutputMessage;)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast byte[]
aload 2
invokevirtual org.springframework.http.converter.ByteArrayHttpMessageConverter.writeInternal:([BLorg/springframework/http/HttpOutputMessage;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotWritableException
}
Signature: Lorg/springframework/http/converter/AbstractHttpMessageConverter<[B>;
SourceFile: "ByteArrayHttpMessageConverter.java"