public class UnsyncStringWriter
extends Writer
See https://issues.liferay.com/browse/LPS-6648.
Modifier and Type | Field and Description |
---|---|
protected StringBuilder |
stringBuilder |
protected StringBundler |
stringBundler |
Constructor and Description |
---|
UnsyncStringWriter() |
UnsyncStringWriter(boolean useStringBundler) |
UnsyncStringWriter(boolean useStringBundler,
int initialCapacity) |
UnsyncStringWriter(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
UnsyncStringWriter |
append(char c) |
UnsyncStringWriter |
append(CharSequence charSequence) |
UnsyncStringWriter |
append(CharSequence charSequence,
int start,
int end) |
void |
close() |
void |
flush() |
StringBuilder |
getStringBuilder() |
StringBundler |
getStringBundler() |
void |
reset() |
String |
toString() |
void |
write(char[] chars) |
void |
write(char[] chars,
int offset,
int length) |
void |
write(int c) |
void |
write(String string) |
void |
write(String string,
int offset,
int length) |
protected StringBuilder stringBuilder
protected StringBundler stringBundler
public UnsyncStringWriter()
public UnsyncStringWriter(boolean useStringBundler)
public UnsyncStringWriter(boolean useStringBundler, int initialCapacity)
public UnsyncStringWriter(int initialCapacity)
public UnsyncStringWriter append(char c)
append
in interface Appendable
append
in class Writer
public UnsyncStringWriter append(CharSequence charSequence)
append
in interface Appendable
append
in class Writer
public UnsyncStringWriter append(CharSequence charSequence, int start, int end)
append
in interface Appendable
append
in class Writer
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
public void flush()
flush
in interface Flushable
flush
in class Writer
public StringBuilder getStringBuilder()
public StringBundler getStringBundler()
public void reset()
public String toString()
toString
in class Object
public void write(char[] chars)
write
in class Writer
public void write(char[] chars, int offset, int length)
write
in class Writer
public void write(int c)
write
in class Writer
public void write(String string)
write
in class Writer
public void write(String string, int offset, int length)
write
in class Writer