Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在设计一个库,其中一个类应该能够将自身内部转换为文本。我应该使用哪个类:OutputStream或Writer?它们之间的主要区别是什么(就我而言)?
OutputStream
Writer
主要区别在于 aStream写入字节(二进制数据)而 aWriter写入字符(文本)。
Stream
选择最适合您的需求。