Permalink
Please sign in to comment.
Browse files
adding additional write method to Index, fixes #430 (#683)
Adding Index.write(file) to the index interface. This is a breaking change which will affect anyone who implements Index or calls TabixFile.write. This fixes an issue where IndexFactory.writeIndex was incorrectly failing to compress tabix index files. (fix #430 ) TabixIndex.write(file) now throws IOException instead of TribbleException. This makes it consistent with the write(stream) methods. Call sites must now catch or throw IOException. deprecated IndexFactory.writeIndex(index, file) because it is now redundant, replace with index.write(file)
- Loading branch information...
Showing
with
77 additions
and 26 deletions.
- +8 −5 src/main/java/htsjdk/tribble/index/AbstractIndex.java
- +8 −0 src/main/java/htsjdk/tribble/index/Index.java
- +3 −13 src/main/java/htsjdk/tribble/index/IndexFactory.java
- +3 −6 src/main/java/htsjdk/tribble/index/tabix/TabixIndex.java
- +1 −1 src/test/java/htsjdk/tribble/FeatureReaderTest.java
- +5 −0 src/test/java/htsjdk/tribble/index/IndexFactoryTest.java
- +47 −0 src/test/java/htsjdk/tribble/index/IndexTest.java
- +2 −1 src/test/java/htsjdk/tribble/index/tabix/TabixIndexTest.java
0 comments on commit
fbba536