Package htsjdk.samtools.util
Class AsciiWriter
java.lang.Object
java.io.Writer
htsjdk.samtools.util.AsciiWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
Fast (I hope) buffered Writer that converts char to byte merely by casting, rather than charset conversion.
-
Constructor Details
-
AsciiWriter
- Parameters:
os
- need not be buffered as this class buffers
-
-
Method Details
-
close
flushes and closes underlying OutputStream.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
flushes underlying OutputStream- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
write
All other Writer methods vector through this, so this is the only one that must be overridden.- Specified by:
write
in classWriter
- Throws:
IOException
-