Skip to content

Commit

Permalink
remove mark
Browse files Browse the repository at this point in the history
  • Loading branch information
Xu, Qinying (H&B, Herston) authored and Xu, Qinying (H&B, Herston) committed Apr 4, 2024
1 parent da88fa9 commit 3ed3b78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/au/csiro/variantspark/utils/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public static boolean isBGZFile(String filePath) {
* .vcf is not GZP file and get htsjdk.samtools.SAMFormatException: at header from java.io.BufferedReader.readLine(BufferedReader.java:389)
*/
try (BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(filePath))) {
bufferedInputStream.mark(100); // mark the current position
//bufferedInputStream.mark(100); // mark the current position
boolean isValid = BlockCompressedInputStream.isValidFile(bufferedInputStream);
bufferedInputStream.reset(); // reset back to the marked position
//bufferedInputStream.reset(); // reset back to the marked position
return isValid;
} catch (IOException e) {
// Handle the exception
Expand Down

0 comments on commit 3ed3b78

Please sign in to comment.