I need to write a function that takes in some kind of input stream thing (e.g. an InputStream or a FileChannel) in order to read a large file in two passes: once to precompu
PushbackInputStream will also work, as long as you know how many characters you want to be able to rewind