Opening resource streams can throw IOException.
Change the stack from an array of bytes to an array of ints.  Seems to make
no measurable difference in speed.