public class org.springframework.http.converter.BufferedImageHttpMessageConverter implements org.springframework.http.converter.HttpMessageConverter<java.awt.image.BufferedImage>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.http.converter.BufferedImageHttpMessageConverter
super_class: java.lang.Object
{
private final java.util.List<org.springframework.http.MediaType> readableMediaTypes;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/springframework/http/MediaType;>;
private org.springframework.http.MediaType defaultContentType;
descriptor: Lorg/springframework/http/MediaType;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private java.io.File cacheDir;
descriptor: Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.springframework.http.converter.BufferedImageHttpMessageConverter.readableMediaTypes:Ljava/util/List;
2: invokestatic javax.imageio.ImageIO.getReaderMIMETypes:()[Ljava/lang/String;
astore 1
start local 1 3: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 8
StackMap locals: org.springframework.http.converter.BufferedImageHttpMessageConverter java.lang.String[] top int int java.lang.String[]
StackMap stack:
4: aload 5
iload 3
aaload
astore 2
start local 2 5: aload 2
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 7
6: aload 0
getfield org.springframework.http.converter.BufferedImageHttpMessageConverter.readableMediaTypes:Ljava/util/List;
aload 2
invokestatic org.springframework.http.MediaType.parseMediaType:(Ljava/lang/String;)Lorg/springframework/http/MediaType;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 4
if_icmplt 4
9: invokestatic javax.imageio.ImageIO.getWriterMIMETypes:()[Ljava/lang/String;
astore 2
start local 2 10: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 16
StackMap locals: org.springframework.http.converter.BufferedImageHttpMessageConverter java.lang.String[] java.lang.String[] top int int java.lang.String[]
StackMap stack:
11: aload 6
iload 4
aaload
astore 3
start local 3 12: aload 3
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 15
13: aload 0
aload 3
invokestatic org.springframework.http.MediaType.parseMediaType:(Ljava/lang/String;)Lorg/springframework/http/MediaType;
putfield org.springframework.http.converter.BufferedImageHttpMessageConverter.defaultContentType:Lorg/springframework/http/MediaType;
14: goto 17
end local 3 15: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
16: iload 4
iload 5
if_icmplt 11
17: StackMap locals: org.springframework.http.converter.BufferedImageHttpMessageConverter java.lang.String[] java.lang.String[]
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
3 18 1 readerMediaTypes [Ljava/lang/String;
5 7 2 mediaType Ljava/lang/String;
10 18 2 writerMediaTypes [Ljava/lang/String;
12 15 3 mediaType Ljava/lang/String;
public void setDefaultContentType(org.springframework.http.MediaType);
descriptor: (Lorg/springframework/http/MediaType;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 6
1: aload 1
invokevirtual org.springframework.http.MediaType.toString:()Ljava/lang/String;
invokestatic javax.imageio.ImageIO.getImageWritersByMIMEType:(Ljava/lang/String;)Ljava/util/Iterator;
astore 2
start local 2 2: aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
3: new java.lang.IllegalArgumentException
dup
4: new java.lang.StringBuilder
dup
ldc "Content-Type ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "] is not supported by the Java Image I/O API"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.springframework.http.converter.BufferedImageHttpMessageConverter.defaultContentType:Lorg/springframework/http/MediaType;
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 8 1 defaultContentType Lorg/springframework/http/MediaType;
2 6 2 imageWriters Ljava/util/Iterator<Ljavax/imageio/ImageWriter;>;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
defaultContentType
public org.springframework.http.MediaType getDefaultContentType();
descriptor: ()Lorg/springframework/http/MediaType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.converter.BufferedImageHttpMessageConverter.defaultContentType:Lorg/springframework/http/MediaType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void setCacheDir(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "'cacheDir' must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 1
invokevirtual java.io.File.isDirectory:()Z
ldc "'cacheDir' is not a directory"
invokestatic org.springframework.util.Assert.isTrue:(ZLjava/lang/String;)V
2: aload 0
aload 1
putfield org.springframework.http.converter.BufferedImageHttpMessageConverter.cacheDir:Ljava/io/File;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 4 1 cacheDir Ljava/io/File;
MethodParameters:
Name Flags
cacheDir
public boolean canRead(java.lang.Class<?>, org.springframework.http.MediaType);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/MediaType;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: ldc Ljava/awt/image/BufferedImage;
aload 1
if_acmpne 1
aload 0
aload 2
invokevirtual org.springframework.http.converter.BufferedImageHttpMessageConverter.isReadable:(Lorg/springframework/http/MediaType;)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/converter/BufferedImageHttpMessageConverter;
0 2 1 clazz Ljava/lang/Class<*>;
0 2 2 mediaType Lorg/springframework/http/MediaType;
Signature: (Ljava/lang/Class<*>;Lorg/springframework/http/MediaType;)Z
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
clazz
mediaType
private boolean isReadable(org.springframework.http.MediaType);
descriptor: (Lorg/springframework/http/MediaType;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.springframework.http.MediaType.toString:()Ljava/lang/String;
invokestatic javax.imageio.ImageIO.getImageReadersByMIMEType:(Ljava/lang/String;)Ljava/util/Iterator;
astore 2
start local 2 3: aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 4 1 mediaType Lorg/springframework/http/MediaType;
3 4 2 imageReaders Ljava/util/Iterator<Ljavax/imageio/ImageReader;>;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
mediaType
public boolean canWrite(java.lang.Class<?>, org.springframework.http.MediaType);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/MediaType;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: ldc Ljava/awt/image/BufferedImage;
aload 1
if_acmpne 1
aload 0
aload 2
invokevirtual org.springframework.http.converter.BufferedImageHttpMessageConverter.isWritable:(Lorg/springframework/http/MediaType;)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/converter/BufferedImageHttpMessageConverter;
0 2 1 clazz Ljava/lang/Class<*>;
0 2 2 mediaType Lorg/springframework/http/MediaType;
Signature: (Ljava/lang/Class<*>;Lorg/springframework/http/MediaType;)Z
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
clazz
mediaType
private boolean isWritable(org.springframework.http.MediaType);
descriptor: (Lorg/springframework/http/MediaType;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
getstatic org.springframework.http.MediaType.ALL:Lorg/springframework/http/MediaType;
aload 1
invokevirtual org.springframework.http.MediaType.equalsTypeAndSubtype:(Lorg/springframework/util/MimeType;)Z
ifeq 2
1: StackMap locals:
StackMap stack:
iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.springframework.http.MediaType.toString:()Ljava/lang/String;
invokestatic javax.imageio.ImageIO.getImageWritersByMIMEType:(Ljava/lang/String;)Ljava/util/Iterator;
astore 2
start local 2 3: aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 4 1 mediaType Lorg/springframework/http/MediaType;
3 4 2 imageWriters Ljava/util/Iterator<Ljavax/imageio/ImageWriter;>;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
mediaType
public java.util.List<org.springframework.http.MediaType> getSupportedMediaTypes();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.converter.BufferedImageHttpMessageConverter.readableMediaTypes:Ljava/util/List;
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
Signature: ()Ljava/util/List<Lorg/springframework/http/MediaType;>;
public java.awt.image.BufferedImage read(java.lang.Class<? extends java.awt.image.BufferedImage>, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)Ljava/awt/image/BufferedImage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: aload 0
aload 2
invokeinterface org.springframework.http.HttpInputMessage.getBody:()Ljava/io/InputStream;
invokevirtual org.springframework.http.converter.BufferedImageHttpMessageConverter.createImageInputStream:(Ljava/io/InputStream;)Ljavax/imageio/stream/ImageInputStream;
astore 3
3: aload 2
invokeinterface org.springframework.http.HttpInputMessage.getHeaders:()Lorg/springframework/http/HttpHeaders;
invokevirtual org.springframework.http.HttpHeaders.getContentType:()Lorg/springframework/http/MediaType;
astore 5
start local 5 4: aload 5
ifnonnull 6
5: new org.springframework.http.converter.HttpMessageNotReadableException
dup
ldc "No Content-Type header"
aload 2
invokespecial org.springframework.http.converter.HttpMessageNotReadableException.<init>:(Ljava/lang/String;Lorg/springframework/http/HttpInputMessage;)V
athrow
6: StackMap locals: javax.imageio.stream.ImageInputStream javax.imageio.ImageReader org.springframework.http.MediaType
StackMap stack:
aload 5
invokevirtual org.springframework.http.MediaType.toString:()Ljava/lang/String;
invokestatic javax.imageio.ImageIO.getImageReadersByMIMEType:(Ljava/lang/String;)Ljava/util/Iterator;
astore 6
start local 6 7: aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 20
8: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.imageio.ImageReader
astore 4
9: aload 4
invokevirtual javax.imageio.ImageReader.getDefaultReadParam:()Ljavax/imageio/ImageReadParam;
astore 7
start local 7 10: aload 0
aload 7
invokevirtual org.springframework.http.converter.BufferedImageHttpMessageConverter.process:(Ljavax/imageio/ImageReadParam;)V
11: aload 4
aload 3
iconst_1
invokevirtual javax.imageio.ImageReader.setInput:(Ljava/lang/Object;Z)V
12: aload 4
iconst_0
aload 7
invokevirtual javax.imageio.ImageReader.read:(ILjavax/imageio/ImageReadParam;)Ljava/awt/image/BufferedImage;
astore 9
13: aload 4
ifnull 15
14: aload 4
invokevirtual javax.imageio.ImageReader.dispose:()V
15: StackMap locals: org.springframework.http.converter.BufferedImageHttpMessageConverter java.lang.Class org.springframework.http.HttpInputMessage javax.imageio.stream.ImageInputStream javax.imageio.ImageReader org.springframework.http.MediaType java.util.Iterator javax.imageio.ImageReadParam top java.awt.image.BufferedImage
StackMap stack:
aload 3
ifnull 19
16: aload 3
invokeinterface javax.imageio.stream.ImageInputStream.close:()V
17: goto 19
18: StackMap locals:
StackMap stack: java.io.IOException
pop
19: StackMap locals:
StackMap stack:
aload 9
areturn
end local 7 20: StackMap locals: org.springframework.http.converter.BufferedImageHttpMessageConverter java.lang.Class org.springframework.http.HttpInputMessage javax.imageio.stream.ImageInputStream javax.imageio.ImageReader org.springframework.http.MediaType java.util.Iterator
StackMap stack:
new org.springframework.http.converter.HttpMessageNotReadableException
dup
21: new java.lang.StringBuilder
dup
ldc "Could not find javax.imageio.ImageReader for Content-Type ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
22: aload 2
23: invokespecial org.springframework.http.converter.HttpMessageNotReadableException.<init>:(Ljava/lang/String;Lorg/springframework/http/HttpInputMessage;)V
athrow
end local 6 end local 5 24: StackMap locals: org.springframework.http.converter.BufferedImageHttpMessageConverter java.lang.Class org.springframework.http.HttpInputMessage javax.imageio.stream.ImageInputStream javax.imageio.ImageReader
StackMap stack: java.lang.Throwable
astore 8
25: aload 4
ifnull 27
26: aload 4
invokevirtual javax.imageio.ImageReader.dispose:()V
27: StackMap locals: org.springframework.http.converter.BufferedImageHttpMessageConverter java.lang.Class org.springframework.http.HttpInputMessage javax.imageio.stream.ImageInputStream javax.imageio.ImageReader top top top java.lang.Throwable
StackMap stack:
aload 3
ifnull 31
28: aload 3
invokeinterface javax.imageio.stream.ImageInputStream.close:()V
29: goto 31
30: StackMap locals:
StackMap stack: java.io.IOException
pop
31: StackMap locals:
StackMap stack:
aload 8
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 32 1 clazz Ljava/lang/Class<+Ljava/awt/image/BufferedImage;>;
0 32 2 inputMessage Lorg/springframework/http/HttpInputMessage;
1 32 3 imageInputStream Ljavax/imageio/stream/ImageInputStream;
2 32 4 imageReader Ljavax/imageio/ImageReader;
4 24 5 contentType Lorg/springframework/http/MediaType;
7 24 6 imageReaders Ljava/util/Iterator<Ljavax/imageio/ImageReader;>;
10 20 7 irp Ljavax/imageio/ImageReadParam;
Exception table:
from to target type
16 17 18 Class java.io.IOException
2 13 24 any
20 24 24 any
28 29 30 Class java.io.IOException
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotReadableException
Signature: (Ljava/lang/Class<+Ljava/awt/image/BufferedImage;>;Lorg/springframework/http/HttpInputMessage;)Ljava/awt/image/BufferedImage;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
clazz
inputMessage
private javax.imageio.stream.ImageInputStream createImageInputStream(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljavax/imageio/stream/ImageInputStream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.http.converter.BufferedImageHttpMessageConverter.cacheDir:Ljava/io/File;
ifnull 2
1: new javax.imageio.stream.FileCacheImageInputStream
dup
aload 1
aload 0
getfield org.springframework.http.converter.BufferedImageHttpMessageConverter.cacheDir:Ljava/io/File;
invokespecial javax.imageio.stream.FileCacheImageInputStream.<init>:(Ljava/io/InputStream;Ljava/io/File;)V
areturn
2: StackMap locals:
StackMap stack:
new javax.imageio.stream.MemoryCacheImageInputStream
dup
aload 1
invokespecial javax.imageio.stream.MemoryCacheImageInputStream.<init>:(Ljava/io/InputStream;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 3 1 is Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
is
public void write(java.awt.image.BufferedImage, org.springframework.http.MediaType, org.springframework.http.HttpOutputMessage);
descriptor: (Ljava/awt/image/BufferedImage;Lorg/springframework/http/MediaType;Lorg/springframework/http/HttpOutputMessage;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
invokevirtual org.springframework.http.converter.BufferedImageHttpMessageConverter.getContentType:(Lorg/springframework/http/MediaType;)Lorg/springframework/http/MediaType;
astore 4
start local 4 1: aload 3
invokeinterface org.springframework.http.HttpOutputMessage.getHeaders:()Lorg/springframework/http/HttpHeaders;
aload 4
invokevirtual org.springframework.http.HttpHeaders.setContentType:(Lorg/springframework/http/MediaType;)V
2: aload 3
instanceof org.springframework.http.StreamingHttpOutputMessage
ifeq 6
3: aload 3
checkcast org.springframework.http.StreamingHttpOutputMessage
astore 5
start local 5 4: aload 5
aload 0
aload 1
aload 4
invokedynamic writeTo(Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;Ljava/awt/image/BufferedImage;Lorg/springframework/http/MediaType;)Lorg/springframework/http/StreamingHttpOutputMessage$Body;
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/io/OutputStream;)V
org/springframework/http/converter/BufferedImageHttpMessageConverter.lambda$0(Ljava/awt/image/BufferedImage;Lorg/springframework/http/MediaType;Ljava/io/OutputStream;)V (7)
(Ljava/io/OutputStream;)V
invokeinterface org.springframework.http.StreamingHttpOutputMessage.setBody:(Lorg/springframework/http/StreamingHttpOutputMessage$Body;)V
end local 5 5: goto 7
6: StackMap locals: org.springframework.http.MediaType
StackMap stack:
aload 0
aload 1
aload 4
aload 3
invokeinterface org.springframework.http.HttpOutputMessage.getBody:()Ljava/io/OutputStream;
invokevirtual org.springframework.http.converter.BufferedImageHttpMessageConverter.writeInternal:(Ljava/awt/image/BufferedImage;Lorg/springframework/http/MediaType;Ljava/io/OutputStream;)V
7: 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 8 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 8 1 image Ljava/awt/image/BufferedImage;
0 8 2 contentType Lorg/springframework/http/MediaType;
0 8 3 outputMessage Lorg/springframework/http/HttpOutputMessage;
1 8 4 selectedContentType Lorg/springframework/http/MediaType;
4 5 5 streamingOutputMessage Lorg/springframework/http/StreamingHttpOutputMessage;
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotWritableException
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
MethodParameters:
Name Flags
image final
contentType final
outputMessage final
private org.springframework.http.MediaType getContentType(org.springframework.http.MediaType);
descriptor: (Lorg/springframework/http/MediaType;)Lorg/springframework/http/MediaType;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual org.springframework.http.MediaType.isWildcardType:()Z
ifne 1
aload 1
invokevirtual org.springframework.http.MediaType.isWildcardSubtype:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.springframework.http.converter.BufferedImageHttpMessageConverter.getDefaultContentType:()Lorg/springframework/http/MediaType;
astore 1
2: StackMap locals:
StackMap stack:
aload 1
ldc "Could not select Content-Type. Please specify one through the 'defaultContentType' property."
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 4 1 contentType Lorg/springframework/http/MediaType;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
contentType
private void writeInternal(java.awt.image.BufferedImage, org.springframework.http.MediaType, java.io.OutputStream);
descriptor: (Ljava/awt/image/BufferedImage;Lorg/springframework/http/MediaType;Ljava/io/OutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aconst_null
astore 5
start local 5 2: aload 2
invokevirtual org.springframework.http.MediaType.toString:()Ljava/lang/String;
invokestatic javax.imageio.ImageIO.getImageWritersByMIMEType:(Ljava/lang/String;)Ljava/util/Iterator;
astore 6
start local 6 3: aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 11
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.imageio.ImageWriter
astore 5
5: aload 5
invokevirtual javax.imageio.ImageWriter.getDefaultWriteParam:()Ljavax/imageio/ImageWriteParam;
astore 7
start local 7 6: aload 0
aload 7
invokevirtual org.springframework.http.converter.BufferedImageHttpMessageConverter.process:(Ljavax/imageio/ImageWriteParam;)V
7: aload 0
aload 3
invokevirtual org.springframework.http.converter.BufferedImageHttpMessageConverter.createImageOutputStream:(Ljava/io/OutputStream;)Ljavax/imageio/stream/ImageOutputStream;
astore 4
8: aload 5
aload 4
invokevirtual javax.imageio.ImageWriter.setOutput:(Ljava/lang/Object;)V
9: aload 5
aconst_null
new javax.imageio.IIOImage
dup
aload 1
aconst_null
aconst_null
invokespecial javax.imageio.IIOImage.<init>:(Ljava/awt/image/RenderedImage;Ljava/util/List;Ljavax/imageio/metadata/IIOMetadata;)V
aload 7
invokevirtual javax.imageio.ImageWriter.write:(Ljavax/imageio/metadata/IIOMetadata;Ljavax/imageio/IIOImage;Ljavax/imageio/ImageWriteParam;)V
end local 7 10: goto 22
11: StackMap locals: javax.imageio.stream.ImageOutputStream javax.imageio.ImageWriter java.util.Iterator
StackMap stack:
new org.springframework.http.converter.HttpMessageNotWritableException
dup
12: new java.lang.StringBuilder
dup
ldc "Could not find javax.imageio.ImageWriter for Content-Type ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial org.springframework.http.converter.HttpMessageNotWritableException.<init>:(Ljava/lang/String;)V
athrow
end local 6 14: StackMap locals: org.springframework.http.converter.BufferedImageHttpMessageConverter java.awt.image.BufferedImage org.springframework.http.MediaType java.io.OutputStream javax.imageio.stream.ImageOutputStream javax.imageio.ImageWriter
StackMap stack: java.lang.Throwable
astore 8
15: aload 5
ifnull 17
16: aload 5
invokevirtual javax.imageio.ImageWriter.dispose:()V
17: StackMap locals: org.springframework.http.converter.BufferedImageHttpMessageConverter java.awt.image.BufferedImage org.springframework.http.MediaType java.io.OutputStream javax.imageio.stream.ImageOutputStream javax.imageio.ImageWriter top top java.lang.Throwable
StackMap stack:
aload 4
ifnull 21
18: aload 4
invokeinterface javax.imageio.stream.ImageOutputStream.close:()V
19: goto 21
20: StackMap locals:
StackMap stack: java.io.IOException
pop
21: StackMap locals:
StackMap stack:
aload 8
athrow
22: StackMap locals: org.springframework.http.converter.BufferedImageHttpMessageConverter java.awt.image.BufferedImage org.springframework.http.MediaType java.io.OutputStream javax.imageio.stream.ImageOutputStream javax.imageio.ImageWriter
StackMap stack:
aload 5
ifnull 24
23: aload 5
invokevirtual javax.imageio.ImageWriter.dispose:()V
24: StackMap locals:
StackMap stack:
aload 4
ifnull 28
25: aload 4
invokeinterface javax.imageio.stream.ImageOutputStream.close:()V
26: goto 28
27: StackMap locals:
StackMap stack: java.io.IOException
pop
28: 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 29 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 29 1 image Ljava/awt/image/BufferedImage;
0 29 2 contentType Lorg/springframework/http/MediaType;
0 29 3 body Ljava/io/OutputStream;
1 29 4 imageOutputStream Ljavax/imageio/stream/ImageOutputStream;
2 29 5 imageWriter Ljavax/imageio/ImageWriter;
3 14 6 imageWriters Ljava/util/Iterator<Ljavax/imageio/ImageWriter;>;
6 10 7 iwp Ljavax/imageio/ImageWriteParam;
Exception table:
from to target type
2 14 14 any
18 19 20 Class java.io.IOException
25 26 27 Class java.io.IOException
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotWritableException
MethodParameters:
Name Flags
image
contentType
body
private javax.imageio.stream.ImageOutputStream createImageOutputStream(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)Ljavax/imageio/stream/ImageOutputStream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.http.converter.BufferedImageHttpMessageConverter.cacheDir:Ljava/io/File;
ifnull 2
1: new javax.imageio.stream.FileCacheImageOutputStream
dup
aload 1
aload 0
getfield org.springframework.http.converter.BufferedImageHttpMessageConverter.cacheDir:Ljava/io/File;
invokespecial javax.imageio.stream.FileCacheImageOutputStream.<init>:(Ljava/io/OutputStream;Ljava/io/File;)V
areturn
2: StackMap locals:
StackMap stack:
new javax.imageio.stream.MemoryCacheImageOutputStream
dup
aload 1
invokespecial javax.imageio.stream.MemoryCacheImageOutputStream.<init>:(Ljava/io/OutputStream;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 3 1 os Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
os
protected void process(javax.imageio.ImageReadParam);
descriptor: (Ljavax/imageio/ImageReadParam;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 1 1 irp Ljavax/imageio/ImageReadParam;
MethodParameters:
Name Flags
irp
protected void process(javax.imageio.ImageWriteParam);
descriptor: (Ljavax/imageio/ImageWriteParam;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 1 1 iwp Ljavax/imageio/ImageWriteParam;
MethodParameters:
Name Flags
iwp
public void write(java.lang.Object, org.springframework.http.MediaType, org.springframework.http.HttpOutputMessage);
descriptor: (Ljava/lang/Object;Lorg/springframework/http/MediaType;Lorg/springframework/http/HttpOutputMessage;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
checkcast java.awt.image.BufferedImage
aload 2
aload 3
invokevirtual org.springframework.http.converter.BufferedImageHttpMessageConverter.write:(Ljava/awt/image/BufferedImage;Lorg/springframework/http/MediaType;Lorg/springframework/http/HttpOutputMessage;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotWritableException
public java.lang.Object read(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.BufferedImageHttpMessageConverter.read:(Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)Ljava/awt/image/BufferedImage;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotReadableException
private void lambda$0(java.awt.image.BufferedImage, org.springframework.http.MediaType, java.io.OutputStream);
descriptor: (Ljava/awt/image/BufferedImage;Lorg/springframework/http/MediaType;Ljava/io/OutputStream;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokevirtual org.springframework.http.converter.BufferedImageHttpMessageConverter.writeInternal:(Ljava/awt/image/BufferedImage;Lorg/springframework/http/MediaType;Ljava/io/OutputStream;)V
return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/BufferedImageHttpMessageConverter;
0 1 3 outputStream Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
}
Signature: Ljava/lang/Object;Lorg/springframework/http/converter/HttpMessageConverter<Ljava/awt/image/BufferedImage;>;
SourceFile: "BufferedImageHttpMessageConverter.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Body = org.springframework.http.StreamingHttpOutputMessage$Body of org.springframework.http.StreamingHttpOutputMessage