@Override public LoggingAdvisingAppendable append(CharSequence csq, int start, int end) throws IOException { delegate.append(csq, start, end); return this; }
@Override public LoggingAdvisingAppendable append(CharSequence csq, int start, int end) throws IOException { delegate.append(csq, start, end); return this; }
@Override public LoggingAdvisingAppendable append(char c) throws IOException { delegate.append(c); return this; }
@Override public LoggingAdvisingAppendable append(CharSequence csq) throws IOException { delegate.append(csq); return this; }
@Override public RenderResult renderAndResolve(LoggingAdvisingAppendable appendable, boolean isLast) throws IOException { appendable.append("null"); return RenderResult.done(); }
@Override public void render(LoggingAdvisingAppendable appendable) throws IOException { // PrimitiveData instances can't really benefit from any incremental approach anyway. appendable.append(coerceToString()); } }
@Override public void render(LoggingAdvisingAppendable appendable) throws IOException { appendable.append(coerceToString()); } }
@Override protected void notifyContentKind(ContentKind kind) throws IOException { if (isInText()) { logger.log( Level.WARNING, "|noAutoescape received value explicitly tagged as ContentKind.TEXT"); // append directly to the delegate. delegate.append(EscapingConventions.INNOCUOUS_OUTPUT); } }
@Override public TeeAdvisingAppendable append(CharSequence csq, int start, int end) throws IOException { delegate.append(csq, start, end); buffer.append(csq, start, end); return this; }
@Override public RenderResult renderAndResolve(LoggingAdvisingAppendable appendable, boolean isLast) throws IOException { appendable.append("null"); return RenderResult.done(); }
@Override protected void notifyContentKind(ContentKind kind) throws IOException { if (isInText()) { logger.log( Level.WARNING, "|noAutoescape received value explicitly tagged as ContentKind.TEXT"); // append directly to the delegate. delegate.append(EscapingConventions.INNOCUOUS_OUTPUT); } }
@Override public void render(LoggingAdvisingAppendable appendable) throws IOException { // PrimitiveData instances can't really benefit from any incremental approach anyway. appendable.append(coerceToString()); } }
@Override public TeeAdvisingAppendable append(CharSequence csq) throws IOException { delegate.append(csq); buffer.append(csq); return this; }
@Override public void close() throws IOException { delegate.append(truncate(buffer.toString(), maxLength, addEllipsis)); } }
@Override public LoggingAdvisingAppendable append(CharSequence csq, int start, int end) throws IOException { delegate.append(insertWordBreaks.processString(csq.subSequence(start, end).toString())); return this; } };
@Override public LoggingAdvisingAppendable append(char c) throws IOException { delegate.append(insertWordBreaks.processChar(c)); return this; }
@Override public LoggingAdvisingAppendable append(CharSequence csq) throws IOException { delegate.append(insertWordBreaks.processString(csq.toString())); return this; }
@Override public RenderResult renderAndResolve(LoggingAdvisingAppendable appendable, boolean isLast) throws IOException { if (content == null) { doResolveOnto(new TeeAppendable(appendable)); } else { appendable.append(content); } return RenderResult.done(); }
@Override public void render(LoggingAdvisingAppendable appendable) throws IOException { appendable .setSanitizedContentKind(getContentKind()) .setSanitizedContentDirectionality(getContentDirection()) .append(content); }