All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.meliorbis.numerics.io.csv.CSVUtil Maven / Gradle / Ivy

Go to download

A library for working with large multi-dimensional arrays and the functions they represent

There is a newer version: 1.2
Show newest version
package com.meliorbis.numerics.io.csv;

import java.io.File;
import java.io.FilenameFilter;

/**
 * Created by toby on 07/03/2014.
 */
public abstract class CSVUtil
{
    public static final FilenameFilter CSV_FILTER = new FilenameFilter()
    {
        @Override
        public boolean accept(File dir, String name)
        {
            return name.toLowerCase().endsWith(".csv");
        }
    };

    private CSVUtil(){}

    static public String ensureExtension(String name_)
    {
        return name_.toLowerCase().endsWith("csv") ? name_ : (name_ + ".csv");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy