public class FastWriter extends Writer
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
buf |
protected int |
pos |
protected Writer |
sink |
| Constructor and Description |
|---|
FastWriter(Writer w) |
FastWriter(Writer sink,
char[] tempBuffer,
int start) |
| Modifier and Type | Method and Description |
|---|---|
FastWriter |
append(char c) |
void |
close() |
void |
flush() |
void |
flush(char[] buf,
int offset,
int len) |
void |
flush(String str,
int offset,
int len) |
void |
flushBuffer() |
static FastWriter |
wrap(Writer sink) |
void |
write(char c) |
void |
write(char[] arr,
int off,
int len) |
void |
write(int c) |
void |
write(String str,
int off,
int len) |
protected final Writer sink
protected char[] buf
protected int pos
public FastWriter(Writer w)
public FastWriter(Writer sink, char[] tempBuffer, int start)
public static FastWriter wrap(Writer sink)
public void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(char c)
throws IOException
IOExceptionpublic FastWriter append(char c) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic void write(char[] arr,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void flush(char[] buf,
int offset,
int len)
throws IOException
IOExceptionpublic void flush(String str, int offset, int len) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void flushBuffer()
throws IOException
IOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.