code: protected ByteBuffer inputStreamToByteBuffer() throws IOException {
          return byteBuffer == null ? byteBuffer = ByteBuffer.wrap(inputStreamToByteArray()) : byteBuffer;
      }
docs: Create a {@link ByteBuffer} from an {@link InputStream}.
  
  @return the byte buffer
  @throws IOException
  if an I/O exception occurs.