Package bref
Interface BrefWriter
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
AsIsBref3Writer,CompressBref3Writer
public interface BrefWriter extends java.io.CloseableInterface
BrefWriteswrites phased, non-missing genotypes to a binary reference format (bref) file. Theclose()method must be called after the last invocation of thewrite()method in order to ensure that any buffered data are written to the output binary reference file.Instances of class
BrefWriterare not thread-safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Flushes any buffered output and releases any system resources that are held by thisBrefWriter.Samplessamples()Returns the list of samples.voidwrite(RefGTRec rec)Writes the specified phased genotype data in binary reference format.
-
-
-
Method Detail
-
samples
Samples samples()
Returns the list of samples.- Returns:
- the list of samples
-
write
void write(RefGTRec rec)
Writes the specified phased genotype data in binary reference format. The Java virtual machine will exit with an error message if an I/O error occurs during method execution, ifthis.close()has previously been invoked, or ifrec.samples().equals(this.samples()) == false.- Parameters:
rec- phased genotype data- Throws:
java.lang.NullPointerException- ifrec == null
-
close
void close()
Flushes any buffered output and releases any system resources that are held by thisBrefWriter. The Java virtual machine will exit with an error message if an I/O error occurs during method execution.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-