Closeable
, Flushable
, Appendable
, AutoCloseable
public class FastStringWriter extends Writer
Modifier and Type | Field | Description |
---|---|---|
protected StringBuilder |
builder |
Constructor | Description |
---|---|
FastStringWriter() |
|
FastStringWriter(int initialCapacity) |
Modifier and Type | Method | 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 AutoCloseable
close
in interface Closeable
close
in class Writer
IOException
public StringBuilder getBuffer()
public void reset()
Copyright © 2018. All rights reserved.