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 Writer
IOException
public void write(char c) throws IOException
IOException
public FastWriter append(char c) throws IOException
append
in interface Appendable
append
in class Writer
IOException
public void write(char[] arr, int off, int len) throws IOException
write
in class Writer
IOException
public void write(String str, int off, int len) throws IOException
write
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void flush(char[] buf, int offset, int len) throws IOException
IOException
public void flush(String str, int offset, int len) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in class Writer
IOException
public void flushBuffer() throws IOException
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.