简体   繁体   中英

What is the difference between a "node stream" and a "filter stream"?

I am having difficulty understanding the differences between "node streams" and "filter streams".

I already saw this question.

Node streams {Data sink stream}

  • Contain the basic functionality of reading or writing from a specific location.
  • Types of node streams include files, memory and pipes.

Filter streams {Processing stream}

  • Layered onto node streams between threads or processes.
  • For additional functionality – altering or managing data in the stream.

Can anyone provide some examples to explain the differences more clearly?

Node is more like nodeJS while filter is just String function filtering out texts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM