java version for stream.js(http://streamjs.org/)