Add java support for stream