docs: public static void dump(InputStream inputStream) throws IOException
    {
      if(!(inputStream instanceof BufferedInputStream)) {
        inputStream = new BufferedInputStream(inputStream);
      }
      try {
        byte[] buffer = new byte[BUFFER_SIZE];
        int length;
        while((length = inputStream.read(buffer)) != -1) {
          System.out.write(buffer, 0, length);
        }
      }
      finally {
        inputStream.close();
      }
    }