@Override protected void notifyContentDirectionality(@Nullable Dir contentDir) throws IOException { delegate.setSanitizedContentDirectionality(contentDir); }
@Override protected void notifyContentDirectionality(@Nullable Dir contentDir) throws IOException { delegate.setSanitizedContentDirectionality(contentDir); }
@Override protected void notifyContentDirectionality(@Nullable Dir contentDir) throws IOException { delegate.setSanitizedContentDirectionality(contentDir); }
@Override protected void notifyContentDirectionality(@Nullable Dir contentDir) throws IOException { delegate.setSanitizedContentDirectionality(contentDir); }
@Override protected void notifyContentDirectionality(@Nullable Dir contentDir) throws IOException { delegate.setSanitizedContentDirectionality(contentDir); buffer.setSanitizedContentDirectionality(contentDir); }
@Override protected void notifyContentDirectionality(@Nullable Dir contentDir) throws IOException { if (isInHtml()) { delegate.setSanitizedContentDirectionality(contentDir); } }
@Override protected void notifyContentDirectionality(@Nullable Dir contentDir) throws IOException { if (isInHtml()) { delegate.setSanitizedContentDirectionality(contentDir); } }
@Override protected void notifyContentDirectionality(@Nullable Dir contentDir) throws IOException { delegate.setSanitizedContentDirectionality(contentDir); buffer.setSanitizedContentDirectionality(contentDir); }
@Override public void render(LoggingAdvisingAppendable appendable) throws IOException { appendable .setSanitizedContentKind(getContentKind()) .setSanitizedContentDirectionality(getContentDirection()); thunk.render(appendable); }
@Override public void render(LoggingAdvisingAppendable appendable) throws IOException { appendable .setSanitizedContentKind(getContentKind()) .setSanitizedContentDirectionality(getContentDirection()) .append(content); }
@Override public void render(LoggingAdvisingAppendable appendable) throws IOException { appendable .setSanitizedContentKind(getContentKind()) .setSanitizedContentDirectionality(getContentDirection()) .append(content); }
public void replayOn(LoggingAdvisingAppendable appendable) throws IOException { if (commands != null) { for (Object o : getCommandsAndAddPendingStringData()) { if (o instanceof String) { appendable.append((String) o); } else if (o instanceof LoggingFunctionCommand) { ((LoggingFunctionCommand) o).replayOn(appendable); } else if (o == EXIT_LOG_STATEMENT_MARKER) { appendable.exitLoggableElement(); } else if (o instanceof LogStatement) { appendable.enterLoggableElement((LogStatement) o); } else if (o instanceof ContentKind) { appendable.setSanitizedContentKind((ContentKind) o); } else if (o instanceof Dir) { appendable.setSanitizedContentDirectionality((Dir) o); } else if (o == SET_SANITIZED_CONTENT_DIRECTIONALITY_NULL_MARKER) { appendable.setSanitizedContentDirectionality(null); } else { throw new AssertionError("unexpected command object: " + o); } } } else { appendable.append(delegate); } }
@Override public void close() throws IOException { if (!isInHtml()) { StringBuilder buffer = (StringBuilder) activeAppendable; if (buffer.length() > 0) { SanitizedContent content = cleanHtml(buffer.toString(), getSanitizedContentDirectionality(), optionalSafeTags); delegate .setSanitizedContentKind(content.getContentKind()) .setSanitizedContentDirectionality(content.getContentDirection()) .append(content.getContent()); buffer.setLength(0); } } } }
public void replayOn(LoggingAdvisingAppendable appendable) throws IOException { if (commands != null) { for (Object o : getCommandsAndAddPendingStringData()) { if (o instanceof String) { appendable.append((String) o); } else if (o instanceof LoggingFunctionCommand) { ((LoggingFunctionCommand) o).replayOn(appendable); } else if (o == EXIT_LOG_STATEMENT_MARKER) { appendable.exitLoggableElement(); } else if (o instanceof LogStatement) { appendable.enterLoggableElement((LogStatement) o); } else if (o instanceof ContentKind) { appendable.setSanitizedContentKind((ContentKind) o); } else if (o instanceof Dir) { appendable.setSanitizedContentDirectionality((Dir) o); } else if (o == SET_SANITIZED_CONTENT_DIRECTIONALITY_NULL_MARKER) { appendable.setSanitizedContentDirectionality(null); } else { throw new AssertionError("unexpected command object: " + o); } } } else { appendable.append(delegate); } }
@Override public void close() throws IOException { if (!isInHtml()) { StringBuilder buffer = (StringBuilder) activeAppendable; if (buffer.length() > 0) { SanitizedContent content = cleanHtml(buffer.toString(), getSanitizedContentDirectionality(), optionalSafeTags); delegate .setSanitizedContentKind(content.getContentKind()) .setSanitizedContentDirectionality(content.getContentDirection()) .append(content.getContent()); buffer.setLength(0); } } } }