Package htsjdk.samtools.fastq
Class BasicFastqWriter
- java.lang.Object
-
- htsjdk.samtools.fastq.BasicFastqWriter
-
- All Implemented Interfaces:
FastqWriter,Closeable,Flushable,AutoCloseable
public class BasicFastqWriter extends Object implements FastqWriter, Flushable
In general FastqWriterFactory should be used so that AsyncFastqWriter can be enabled, but there are some cases in which that behavior is explicitly not wanted.
-
-
Constructor Summary
Constructors Constructor Description BasicFastqWriter(File file)BasicFastqWriter(File file, boolean createMd5)BasicFastqWriter(PrintStream writer)
-
-
-
Constructor Detail
-
BasicFastqWriter
public BasicFastqWriter(File file)
-
BasicFastqWriter
public BasicFastqWriter(File file, boolean createMd5)
-
BasicFastqWriter
public BasicFastqWriter(PrintStream writer)
-
-
Method Detail
-
write
public void write(FastqRecord rec)
- Specified by:
writein interfaceFastqWriter
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceFastqWriter
-
-