Input and Output Stream Pipe in Java

后端 未结 7 1730
闹比i
闹比i 2020-12-17 21:18

Does anyone have any good suggestions for creating a Pipe object in Java which is both an InputStream and and OutputStream since Java does not have multiple inherit

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-17 21:58

    This is a pretty common thing to do, I think. See this question.

    Easy way to write contents of a Java InputStream to an OutputStream

提交回复
热议问题