code: public static String readFromInputStream(InputStream inputStream) {
          try {
              return IOUtils.toString(inputStream, Charset.forName("utf-8")).trim();
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
      }
docs: 从流中读取文件内容，本方法不负责关闭流，请自行关闭