Class BufferedImageHttpMessageConverter

java.lang.Object
org.springframework.http.converter.BufferedImageHttpMessageConverter
All Implemented Interfaces:
HttpMessageConverter<BufferedImage>

public class BufferedImageHttpMessageConverter extends Object implements HttpMessageConverter<BufferedImage>
Implementation of HttpMessageConverter that can read and write BufferedImages.

By default, this converter can read all media types that are supported by the registered image readers, and writes using the media type of the first available registered image writer. The latter can be overridden by setting the defaultContentType property.

If the cacheDir property is set, this converter will cache image data.

The process(ImageReadParam) and process(ImageWriteParam) template methods allow subclasses to override Image I/O parameters.

Since:
3.0
Author:
Arjen Poutsma