public final class CountingFlushableAppendable extends Object implements Appendable, Flushable, SoyFutureValueProvider.FutureBlockCallback
| Constructor and Description |
|---|
CountingFlushableAppendable(Appendable appendable) |
| Modifier and Type | Method and Description |
|---|---|
Appendable |
append(char c) |
Appendable |
append(CharSequence csq) |
Appendable |
append(CharSequence csq,
int start,
int end) |
void |
beforeBlock()
Soy is about to block on a future.
|
void |
flush() |
int |
getAppendedCountSinceLastFlush() |
public CountingFlushableAppendable(Appendable appendable)
public int getAppendedCountSinceLastFlush()
public Appendable append(CharSequence csq) throws IOException
append in interface AppendableIOExceptionpublic Appendable append(CharSequence csq, int start, int end) throws IOException
append in interface AppendableIOExceptionpublic Appendable append(char c) throws IOException
append in interface AppendableIOExceptionpublic void flush()
throws IOException
flush in interface FlushableIOExceptionpublic void beforeBlock()
beforeBlock in interface SoyFutureValueProvider.FutureBlockCallback