Add getters for defaults SAMFileWriterFactory fields #791

Merged
merged 1 commit into from Jan 25, 2017
Jump to file or symbol
Failed to load files and symbols.
+16 −0
Split
@@ -86,6 +86,14 @@ public static void setDefaultCreateMd5File(final boolean createMd5File) {
}
/**
+ * Gets the default for whether to create md5Files for BAM files this factory.
+ * @see #setDefaultCreateMd5File(boolean)
+ */
+ public static boolean getDefaultCreateMd5File() {
+ return defaultCreateMd5File;
+ }
+
+ /**
* Sets whether to create md5Files for BAMs from this factory.
*/
public SAMFileWriterFactory setCreateMd5File(final boolean createMd5File) {
@@ -128,6 +136,14 @@ public static void setDefaultCreateIndexWhileWriting(final boolean setting) {
}
/**
+ * Gets the default for subsequent SAMFileWriterFactories that do not specify whether to create an index.
+ * @see #setDefaultCreateIndexWhileWriting
+ */
+ public static boolean getDefaultCreateIndexWhileWriting() {
+ return defaultCreateIndexWhileWriting;
+ }
+
+ /**
* Convenience method allowing newSAMFileWriterFactory().setCreateIndex(true);
* Equivalent to SAMFileWriterFactory.setDefaultCreateIndexWhileWriting(true); newSAMFileWriterFactory();
* If a BAM or CRAM (not SAM) file is created, the setting is true, and the file header specifies coordinate order,