MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / getTextFileReader

Method getTextFileReader

src/rnabloom/util/FileUtils.java:50–57  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

48public class FileUtils {
49
50 public static BufferedReader getTextFileReader(String path) throws FileNotFoundException, IOException {
51 if (path.toLowerCase().endsWith(GZIP_EXT)) {
52 return new BufferedReader(new InputStreamReader(new GZIPInputStream(new FileInputStream(path), BUFFER_SIZE)), BUFFER_SIZE);
53 }
54 else {
55 return new BufferedReader(new InputStreamReader(new FileInputStream(path)), BUFFER_SIZE);
56 }
57 }
58
59 public static Writer getTextFileWriter(String path, boolean append) throws FileNotFoundException, IOException {
60 if (path.toLowerCase().endsWith(GZIP_EXT)) {

Callers 11

loadStringFromFileMethod · 0.95
readIntArrayFromFileMethod · 0.95
getPooledReadPathsMethod · 0.80
getNonEmptyLinesMethod · 0.80
FastaReaderMethod · 0.80
PafReaderMethod · 0.80
FastqReaderMethod · 0.80
NTCardHistogramMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected