public final class AsciiWriter extends java.io.Writer
Copied from HTSJDK but with constructor modified so that the buffer size can be customized Fast (I hope) buffered Writer that converts char to byte merely by casting, rather than charset conversion.
Constructor and description |
---|
AsciiWriter
(java.io.OutputStream os, int bufferSize)
|
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
close() flushes and closes underlying OutputStream. |
|
public void |
flush() flushes underlying OutputStream |
|
public void |
write(char[] chars, int offset, int length) All other Writer methods vector through this, so this is the only one that must be overridden. |
Methods inherited from class | Name |
---|---|
class java.io.Writer |
java.io.Writer#append(java.lang.CharSequence, int, int), java.io.Writer#append(java.lang.CharSequence, int, int), java.io.Writer#append(char), java.io.Writer#append(char), java.io.Writer#append(java.lang.CharSequence), java.io.Writer#append(java.lang.CharSequence), java.io.Writer#write(int), java.io.Writer#write([C), java.io.Writer#write([C, int, int), java.io.Writer#write(java.lang.String), java.io.Writer#write(java.lang.String, int, int), java.io.Writer#flush(), java.io.Writer#close(), java.io.Writer#nullWriter(), java.io.Writer#wait(long), java.io.Writer#wait(long, int), java.io.Writer#wait(), java.io.Writer#equals(java.lang.Object), java.io.Writer#toString(), java.io.Writer#hashCode(), java.io.Writer#getClass(), java.io.Writer#notify(), java.io.Writer#notifyAll() |
os
- need not be buffered as this class buffersflushes and closes underlying OutputStream.
flushes underlying OutputStream
All other Writer methods vector through this, so this is the only one that must be overridden.