Replace nextBytesAsInt method with stream reader