Class DefaultInputStreamMapper

java.lang.Object
io.micronaut.objectstorage.DefaultInputStreamMapper
All Implemented Interfaces:
InputStreamMapper

@Singleton public class DefaultInputStreamMapper extends Object implements InputStreamMapper
Since:
1.0
Author:
Pavol Gressa
  • Constructor Details

    • DefaultInputStreamMapper

      public DefaultInputStreamMapper()
  • Method Details

    • toByteArray

      public byte[] toByteArray(@NonNull @NonNull InputStream inputStream)
      Description copied from interface: InputStreamMapper
      Transforms an InputStream into a byte array.
      Specified by:
      toByteArray in interface InputStreamMapper
      Parameters:
      inputStream - Input Stream.
      Returns:
      the byte array