Skip to content

Commit c14eac9

Browse files
authored
Merge pull request giantray#106 from Jisu-Woniu/master
代码格式修复
2 parents ca5550b + a2fe2a2 commit c14eac9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contents/read-convert-an-inputstream-to-a-string.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ IOUtils.copy(inputStream, writer, encoding);
99
String theString = writer.toString();
1010
```
1111
或者
12+
```java
1213
String theString = IOUtils.toString(inputStream, encoding)//这个方法其实封装了上面的方法,减少了一个参数
13-
14+
```
1415
###使用原生库
1516
如果不想引入Apache库,也可以这样做
1617
```java

0 commit comments

Comments
 (0)