-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCsvInputParser.java
More file actions
36 lines (31 loc) · 903 Bytes
/
CsvInputParser.java
File metadata and controls
36 lines (31 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 <code>b</code> is a delimiter; otherwise false
*/
@Override
protected boolean isDelimiter(final byte b) {
return b == ',';
}
}