Class AbstractFileService<T>

    • Constructor Detail

      • AbstractFileService

        public AbstractFileService()
    • Method Detail

      • getTsvFormatBuilder

        protected org.apache.commons.csv.CSVFormat.Builder getTsvFormatBuilder​(String... extraHeaderComments)
        Preconfigure a CSVFormat.Builder with desirable defaults.
        Parameters:
        extraHeaderComments - additional header comments that will be included at the top of the TSV file.
      • getSubDelimiter

        protected String getSubDelimiter()
        Get the delimiter used within column.
      • format

        protected String format​(@Nullable
                                Double d)
        Format a Double for TSV.
        Parameters:
        d - a double to format
        Returns:
        a formatted double, an empty string if d is null or NaN or inf/-inf if infinite