public abstract class ForwardingLoggingAdvisingAppendable extends LoggingAdvisingAppendable
LoggingAdvisingAppendable.BufferingAppendable| Modifier and Type | Field and Description |
|---|---|
protected LoggingAdvisingAppendable |
delegate |
| Modifier | Constructor and Description |
|---|---|
protected |
ForwardingLoggingAdvisingAppendable(LoggingAdvisingAppendable delegate) |
| Modifier and Type | Method and Description |
|---|---|
LoggingAdvisingAppendable |
append(char c) |
LoggingAdvisingAppendable |
append(CharSequence csq) |
LoggingAdvisingAppendable |
append(CharSequence csq,
int start,
int end) |
LoggingAdvisingAppendable |
appendLoggingFunctionInvocation(LoggingFunctionInvocation funCall,
com.google.common.collect.ImmutableList<com.google.common.base.Function<String,String>> escapers)
Called whenever a logging function is being rendered.
|
LoggingAdvisingAppendable |
enterLoggableElement(LogStatement statement)
Called whenever a loggable element is entered.
|
LoggingAdvisingAppendable |
exitLoggableElement()
Called whenever a loggable element is exited.
|
protected void |
notifyContentDirectionality(Dir contentDir)
Called when the directionality is initially set.
|
protected void |
notifyContentKind(SanitizedContent.ContentKind kind)
Called when the content kind is initially set.
|
boolean |
softLimitReached()
Indicates that an internal limit has been reached or exceeded and that write operations should
be suspended soon.
|
buffering, delegating, escapePlaceholder, getSanitizedContentDirectionality, getSantizedContentKind, setSanitizedContentDirectionality, setSanitizedContentKind, stringCoercingprotected final LoggingAdvisingAppendable delegate
protected ForwardingLoggingAdvisingAppendable(LoggingAdvisingAppendable delegate)
public boolean softLimitReached()
AdvisingAppendablepublic LoggingAdvisingAppendable append(CharSequence csq) throws IOException
append in interface AdvisingAppendableappend in interface Appendableappend in class LoggingAdvisingAppendableIOExceptionpublic LoggingAdvisingAppendable append(CharSequence csq, int start, int end) throws IOException
append in interface AdvisingAppendableappend in interface Appendableappend in class LoggingAdvisingAppendableIOExceptionpublic LoggingAdvisingAppendable append(char c) throws IOException
append in interface AdvisingAppendableappend in interface Appendableappend in class LoggingAdvisingAppendableIOExceptionpublic LoggingAdvisingAppendable enterLoggableElement(LogStatement statement)
LoggingAdvisingAppendableenterLoggableElement in class LoggingAdvisingAppendablepublic LoggingAdvisingAppendable exitLoggableElement()
LoggingAdvisingAppendableexitLoggableElement in class LoggingAdvisingAppendableprotected void notifyContentKind(SanitizedContent.ContentKind kind) throws IOException
LoggingAdvisingAppendablenotifyContentKind in class LoggingAdvisingAppendableIOException#setSanitizedContentKind(ContentKind)protected void notifyContentDirectionality(@Nullable Dir contentDir) throws IOException
LoggingAdvisingAppendablenotifyContentDirectionality in class LoggingAdvisingAppendableIOExceptionLoggingAdvisingAppendable.setSanitizedContentDirectionality(Dir)public LoggingAdvisingAppendable appendLoggingFunctionInvocation(LoggingFunctionInvocation funCall, com.google.common.collect.ImmutableList<com.google.common.base.Function<String,String>> escapers) throws IOException
LoggingAdvisingAppendableTODO(lukes): come up with a better interface than Function. Maybe Escaper?
appendLoggingFunctionInvocation in class LoggingAdvisingAppendablefunCall - The function invocationescapers - The escapers to apply to the result. NOTE: this should be SoyJavaPrintDirective
or similar but that would cause cycles between soy.data and soy.shared.restrictedIOException