/** * Use to set if plain text version or html version should be saved to CSV. True saves plain * text; false saves HTML version. Default is false * * @param toPlainText true or false * @return the builder */ public Builder convertToPlainText(boolean toPlainText) { instance.convertToPlainText(toPlainText); return this; }
/** * Sets the destination where the csv file would be written. If not used, the out put would be * written to {@code out.csv} in the running directory * * @param file the file to write csv * @return the builder */ public Builder setDestination(Path file) { instance.setDestination(file); return this; }
/** * Sets the format used for writing the CSV file * * @param format the format expressed as a {@link * com.blogspot.geekabyte.krwler.util.CSVAction.CSVFORMAT} if none is configured the default * is {@link com.blogspot.geekabyte.krwler.util.CSVAction.CSVFORMAT#DEFAULT} * @return the builder */ public Builder setCSVFormat(CSVFORMAT format) { instance.setCSVFormat(format); return this; }