Here you can find the source of bytesToIntStream(byte[] bytes)
static IntStream bytesToIntStream(byte[] bytes)
//package com.java2s; //License from project: Open Source License import java.util.stream.IntStream; public class Main { static IntStream bytesToIntStream(byte[] bytes) { return IntStream.range(0, bytes.length).map(i -> bytes[i] & 0xFF); }/*from w w w. j a va 2 s .c o m*/ }