Byte Stream and Character stream

前端 未结 5 854
我在风中等你
我在风中等你 2020-11-29 18:27

Please explain what Byte streams and Character streams are. What exactly do these mean? Is a Microsoft Word document Byte oriented or Character oriented?

Thanks

5条回答
  •  悲&欢浪女
    2020-11-29 19:17

    1.Character oriented are tied to datatype. Only string type or character type can be read through it while byte oriented are not tied to any datatype, data of any datatype can be read(except string) just you have to specify it.

    2.Character oriented reads character by character while byte oriented reads byte by byte

    3.Character oriented streams use character encoding scheme(UNICODE) while byte oriented do not use any encoding scheme

    4.Character oriented streams are also known as reader and writer streams Byte oriented streams are known as data streams-Data input stream and Data output stream

提交回复
热议问题