public final class AdvisingStringBuilder extends Object implements AdvisingAppendable
AdvisingAppendable that delegates to a StringBuilder.
NOTE: softLimitReached() is hard coded to return false, since it is assumed
that users will not care about limiting buffer usage.
| Constructor and Description |
|---|
AdvisingStringBuilder() |
| Modifier and Type | Method and Description |
|---|---|
AdvisingStringBuilder |
append(char c) |
AdvisingStringBuilder |
append(CharSequence s) |
AdvisingStringBuilder |
append(CharSequence s,
int start,
int end) |
String |
getAndClearBuffer() |
boolean |
softLimitReached()
Indicates that an internal limit has been reached or exceeded and that write operations should
be suspended soon.
|
String |
toString() |
public AdvisingStringBuilder append(CharSequence s)
append in interface AdvisingAppendableappend in interface Appendablepublic AdvisingStringBuilder append(CharSequence s, int start, int end)
append in interface AdvisingAppendableappend in interface Appendablepublic AdvisingStringBuilder append(char c)
append in interface AdvisingAppendableappend in interface Appendablepublic boolean softLimitReached()
AdvisingAppendablesoftLimitReached in interface AdvisingAppendablepublic String getAndClearBuffer()