BufferedOutputStream vs ByteArrayOutputStream

后端 未结 3 1697
你的背包
你的背包 2021-02-07 02:15

Is there any advantage in wrapping a BufferedOutputStream around a ByteArrayOutputStream instead of just using the ByteArrrayOutputStream by itself?

3条回答
  •  旧时难觅i
    2021-02-07 02:31

    Absolutely none. Though BufferedWriter and BufferedReader do offer extra functionality were you to be operating on strings.

提交回复
热议问题