Forcing flush in PrintWriter when generating text. PrintWriter does not autoflush output except at a newline. #106

This commit is contained in:
Rob Greene 2023-10-26 21:49:16 -05:00
parent 1c6bc6238b
commit d62eee955c

View File

@ -61,6 +61,7 @@ public class TextFileFilter implements FileFilter {
}
offset++;
}
printWriter.flush();
return byteArray.toByteArray();
}