private final int maxEntriesInFile;
private int numEntriesInCurrentFile;
private PrintWriter currentFileWriter;
private final boolean shouldCompress;
private final String fileExtensionWithDot;
<BUG>private final int maxAmountOfFiles;
public AsciiFileWriterPool(final Log writerLog, final Path folder, final String charsetName, final int maxEntriesInFile, final boolean shouldCompress,
final int maxAmountOfFiles) {
super(writerLog, folder);
this.maxAmountOfFiles = maxAmountOfFiles;
this.charset = Charset.forName(charsetName);</BUG>
this.maxEntriesInFile = maxEntriesInFile;

private final int maxEntriesInFile;
private int numEntriesInCurrentFile;
private PrintWriter currentFileWriter;
private final boolean shouldCompress;
private final String fileExtensionWithDot;
private final int maxAmountOfFiles;
private final int maxBytesPerFile;
public AsciiFileWriterPool(final Log writerLog, final Path folder, final String charsetName, final int maxEntriesInFile, final boolean shouldCompress,
final int maxAmountOfFiles, final int maxMegaBytesPerFile) {
super(writerLog, folder);
this.maxAmountOfFiles = maxAmountOfFiles;
this.maxBytesPerFile = maxMegaBytesPerFile * 1024 * 1024; // conversion from MB to Bytes
this.charset = Charset.forName(charsetName);
this.maxEntriesInFile = maxEntriesInFile;
