Skip to content

Commit 3ed3b78

Browse files
Xu, Qinying (H&B, Herston)Xu, Qinying (H&B, Herston)
Xu, Qinying (H&B, Herston)
authored and
Xu, Qinying (H&B, Herston)
committed
remove mark
1 parent da88fa9 commit 3ed3b78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/au/csiro/variantspark/utils/FileUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public static boolean isBGZFile(String filePath) {
2020
* .vcf is not GZP file and get htsjdk.samtools.SAMFormatException: at header from java.io.BufferedReader.readLine(BufferedReader.java:389)
2121
*/
2222
try (BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(filePath))) {
23-
bufferedInputStream.mark(100); // mark the current position
23+
//bufferedInputStream.mark(100); // mark the current position
2424
boolean isValid = BlockCompressedInputStream.isValidFile(bufferedInputStream);
25-
bufferedInputStream.reset(); // reset back to the marked position
25+
//bufferedInputStream.reset(); // reset back to the marked position
2626
return isValid;
2727
} catch (IOException e) {
2828
// Handle the exception

0 commit comments

Comments
 (0)