expectedSize Expected size of the generated file, in bytes; pass 0 if unknown
final int expectedSize;