docs: private ByteBuffer buffer( InputStream stream ) throws IOException {
          stream.reset();
          ByteArrayOutputStream bout = new ByteArrayOutputStream();
          IoUtil.write(stream, bout);
          return ByteBuffer.wrap(bout.toByteArray());
      }