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 WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic StringBuilder getBuffer()
public void reset()
Copyright © 2018. All rights reserved.