public class FastWriter
extends java.io.Writer
Modifier and Type | Field and Description |
---|---|
protected char[] |
buf |
private static int |
BUFSIZE |
protected int |
pos |
protected java.io.Writer |
sink |
Constructor and Description |
---|
FastWriter(java.io.Writer w) |
FastWriter(java.io.Writer sink,
char[] tempBuffer,
int start) |
Modifier and Type | Method and Description |
---|---|
FastWriter |
append(char c) |
void |
close() |
void |
flush() |
void |
flushBuffer() |
static FastWriter |
wrap(java.io.Writer sink) |
void |
write(char c) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(java.lang.String str,
int off,
int len) |
private static final int BUFSIZE
protected final java.io.Writer sink
protected final char[] buf
protected int pos
public FastWriter(java.io.Writer w)
public FastWriter(java.io.Writer sink, char[] tempBuffer, int start)
public static FastWriter wrap(java.io.Writer sink)
public void write(int c) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(char c) throws java.io.IOException
java.io.IOException
public FastWriter append(char c) throws java.io.IOException
append
in interface java.lang.Appendable
append
in class java.io.Writer
java.io.IOException
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(java.lang.String str, int off, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.io.IOException
public void flushBuffer() throws java.io.IOException
java.io.IOException