Android Utililty Methods ByteBuffer to InputStream Convert

List of utility methods to do ByteBuffer to InputStream Convert

Description

The list of methods to do ByteBuffer to InputStream Convert are organized into topic(s).

Method

InputStreamtoStream(ByteBuffer byteBuffer)
Wraps a ByteBuffer in an InputStream.
byte[] bytes = new byte[byteBuffer.remaining()];
byteBuffer.get(bytes);
return new ByteArrayInputStream(bytes);