public class FastWriter extends Writer
| 构造器和说明 |
|---|
FastWriter(Writer w) |
FastWriter(Writer sink,
char[] tempBuffer,
int start) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 WriterIOExceptionpublic void write(char c)
throws IOException
IOExceptionpublic FastWriter append(char c) throws IOException
append 在接口中 Appendableappend 在类中 WriterIOExceptionpublic void write(char[] arr,
int off,
int len)
throws IOException
write 在类中 WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write 在类中 WriterIOExceptionpublic void flush()
throws IOException
flush 在接口中 Flushableflush 在类中 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 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 WriterIOExceptionpublic void flushBuffer()
throws IOException
IOExceptionCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.