Using BufferedInputStream when reading from a Java class file