Package com.robothy.s3.rest.utils
Class ByteBufUtils
java.lang.Object
com.robothy.s3.rest.utils.ByteBufUtils
ByteBuf related utils.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.netty.buffer.ByteBuffromInputStream(InputStream inputStream) Transfer all data from an InputStream to a ByteBuf.
-
Constructor Details
-
ByteBufUtils
public ByteBufUtils()
-
-
Method Details
-
fromInputStream
Transfer all data from an InputStream to a ByteBuf. TheinputStreamwill be closed.- Parameters:
inputStream- input stream to read.- Returns:
- a ByteBuf with data from the
inputStream.
-