1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-01 16:28:03 +08:00

[docs fix] code indentation

This commit is contained in:
darcy 2025-03-18 11:33:01 +08:00
parent 76e4dbaa3b
commit 3bab51fc41

View File

@ -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 {
@ -130,7 +130,7 @@ public class InputStreamReader extends Reader {
}
}
// 使用 StreamDecoder 对象做具体的读取工作
public int read() throws IOException {
public int read() throws IOException {
return sd.read();
}
}