Class ByteArrayHttpMessageConverter

java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<byte[]>
org.springframework.http.converter.ByteArrayHttpMessageConverter
All Implemented Interfaces:
HttpMessageConverter<byte[]>

public class ByteArrayHttpMessageConverter extends AbstractHttpMessageConverter<byte[]>
Implementation of HttpMessageConverter that can read and write byte arrays.

By default, this converter supports all media types (*/*), and writes with a Content-Type of application/octet-stream. This can be overridden by setting the supportedMediaTypes property.

Since:
3.0
Author:
Arjen Poutsma, Juergen Hoeller