public interface VariantContextWriter
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
void |
add(VariantContext vc) |
boolean |
checkError() |
void |
close()
attempt to close the VCF file
|
void |
setHeader(VCFHeader header)
Sets the VCF header so that data blocks can be written without writing the header
Exactly one of writeHeader() or setHeader() should be called when using a writer
|
void |
writeHeader(VCFHeader header)
Writes the header
|
void writeHeader(VCFHeader header)
header
- headerjava.lang.IllegalStateException
- if header is already writtenvoid close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
boolean checkError()
void add(VariantContext vc)
void setHeader(VCFHeader header)
header
- VCF headerjava.lang.IllegalStateException
- if header or body is already written