Package htsjdk.samtools.fastq
Class BasicFastqWriter
java.lang.Object
htsjdk.samtools.fastq.BasicFastqWriter
- All Implemented Interfaces:
Writer<FastqRecord>
,FastqWriter
,Closeable
,Flushable
,AutoCloseable
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
ConstructorsConstructorDescriptionBasicFastqWriter
(File file) BasicFastqWriter
(File file, boolean createMd5) BasicFastqWriter
(PrintStream writer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
void
write
(FastqRecord rec) Writes one item.
-
Constructor Details
-
BasicFastqWriter
-
BasicFastqWriter
-
BasicFastqWriter
-
-
Method Details
-
write
Description copied from interface:Writer
Writes one item.- Specified by:
write
in interfaceFastqWriter
- Specified by:
write
in interfaceWriter<FastqRecord>
- Parameters:
rec
- the item to write.
-
flush
public void flush() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceFastqWriter
-