开发者

Buffered Methods in Java for writing Objects in Files?

开发者 https://www.devze.com 2023-03-31 03:04 出处:网络
I wanted to know if its possible or there is some library for having buffered I/O methods for writing/reading objects in java (ObjectOutputStream, ObjectInputStream).

I wanted to know if its possible or there is some library for having buffered I/O methods for writing/reading objects in java (ObjectOutputStream, ObjectInputStream).

Thanks in advance for your help. Bes开发者_开发技巧nik.


Just create a BufferedInputStream/BufferedOutputStream around the FileOutputStream/FileInputStream, then pass that to the constructor of the ObjectInputStream/ObjectOutputStream.

If that's not what you're after, please clarify your question.

0

精彩评论

暂无评论...
验证码 换一张
取 消