Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/java/io/io-design-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ BufferedReader bufferedReader = new BufferedReader(isr);

```java
public class InputStreamReader extends Reader {
//用于解码的对象
private final StreamDecoder sd;
//用于解码的对象
private final StreamDecoder sd;
public InputStreamReader(InputStream in) {
super(in);
try {
Expand All @@ -130,7 +130,7 @@ public class InputStreamReader extends Reader {
}
}
// 使用 StreamDecoder 对象做具体的读取工作
public int read() throws IOException {
public int read() throws IOException {
return sd.read();
}
}
Expand Down