public class FastStringWriter extends Writer
Modifier and Type | Field and Description |
---|---|
protected StringBuilder |
builder |
Constructor and Description |
---|
FastStringWriter() |
FastStringWriter(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
StringBuilder |
getBuffer() |
void |
reset() |
String |
toString() |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
protected StringBuilder builder
public FastStringWriter()
public FastStringWriter(int initialCapacity)
public void write(char[] cbuf, 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 close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public StringBuilder getBuffer()
public void reset()
Copyright © 2019. All rights reserved.