1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Fix: typo ObjectOutputStream -> ObjectInputStream

This commit is contained in:
Zhongtao Miao 2022-08-31 17:59:31 +09:00
parent d349c7e36a
commit d984d79115

View File

@ -149,7 +149,7 @@ dataOutputStream.writeBoolean(true);
dataOutputStream.writeByte(1); dataOutputStream.writeByte(1);
``` ```
`ObjectOutputStream` 用于从输入流中读取 Java 对象(`ObjectInputStream`,反序列化)或者将对象写入到输出流(`ObjectOutputStream`,序列化)。 `ObjectInputStream` 用于从输入流中读取 Java 对象(`ObjectInputStream`,反序列化)`ObjectOutputStream`将对象写入到输出流(`ObjectOutputStream`,序列化)。
```java ```java
ObjectOutputStream output = new ObjectOutputStream(new FileOutputStream("file.txt") ObjectOutputStream output = new ObjectOutputStream(new FileOutputStream("file.txt")