Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a2fe2a2

Browse files
代码格式修复
1 parent ca5550b commit a2fe2a2

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)

AltStyle によって変換されたページ (->オリジナル) /