Class ByteBufUtils

java.lang.Object
com.robothy.s3.rest.utils.ByteBufUtils

public class ByteBufUtils extends Object
ByteBuf related utils.
  • Constructor Details

    • ByteBufUtils

      public ByteBufUtils()
  • Method Details

    • fromInputStream

      public static io.netty.buffer.ByteBuf fromInputStream(InputStream inputStream)
      Transfer all data from an InputStream to a ByteBuf. The inputStream will be closed.
      Parameters:
      inputStream - input stream to read.
      Returns:
      a ByteBuf with data from the inputStream.