Class InputStreamToByteArrayConverter

  • All Implemented Interfaces:
    ContentTypeConverter<InputStream,​byte[]>

    public class InputStreamToByteArrayConverter
    extends Object
    implements ContentTypeConverter<InputStream,​byte[]>
    Converter that converts an InputStream to a byte array. This converter simply reads all contents from the input stream and returns that as an array.
    Since:
    2.0
    Author:
    Allard Buijze