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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
flush
flushes underlying OutputStream- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
write
All other Writer methods vector through this, so this is the only one that must be overridden.- Specified by:
writein classWriter- Throws:
IOException
-