JAVA, add java8 code;JS, add streaming examples