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.Writerjava.io.IOExceptionpublic void write(char c)
throws java.io.IOException
java.io.IOExceptionpublic FastWriter append(char c) throws java.io.IOException
append in interface java.lang.Appendableappend in class java.io.Writerjava.io.IOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOExceptionpublic void flushBuffer()
throws java.io.IOException
java.io.IOException