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

picard.util.CsvInputParser Maven / Gradle / Ivy

package picard.util;

import java.io.File;
import java.io.InputStream;

public class CsvInputParser extends BasicInputParser {
    /**
     * Constructor
     *
     * @param stream  The input stream(s) to parse
     */
    public CsvInputParser(final boolean treatGroupedDelimitersAsOne, final InputStream... stream) {
        super(treatGroupedDelimitersAsOne, stream);
    }

    /**
     * Constructor
     *
     * @param file  The file(s) to parse
     */
    public CsvInputParser(final boolean treatGroupedDelimitersAsOne, final File... file) {
        super(treatGroupedDelimitersAsOne, file);
    }

    /**
     * Determines whether a given character is a delimiter
     *
     * @param b the character to evaluate
     * @return  true if b is a delimiter; otherwise false
     */
    @Override
    protected boolean isDelimiter(final byte b) {
        return b == ',';
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy