public final class LazyEscapingCharSequence extends AbstractLazyCharSequence
Character sequence that performs a lazy escaping of a text, so that it is directly written to a Writer output during the escape operation itself.
It is used sometimes internally by the engine in order to avoid the creation of extra String objects in some scenarios (e.g. th:text).
This is mostly an internal class, and its use is not recommended from user's code.
This class is not thread-safe.
Constructor and Description |
---|
LazyEscapingCharSequence(IEngineConfiguration configuration,
TemplateMode templateMode,
Object input) |
Modifier and Type | Method and Description |
---|---|
protected String |
resolveText() |
protected void |
writeUnresolved(Writer writer) |
charAt, equals, hashCode, length, subSequence, toString, write
chars, codePoints
public LazyEscapingCharSequence(IEngineConfiguration configuration, TemplateMode templateMode, Object input)
protected String resolveText()
resolveText
in class AbstractLazyCharSequence
protected void writeUnresolved(Writer writer) throws IOException
writeUnresolved
in class AbstractLazyCharSequence
IOException
Copyright © 2016 The THYMELEAF team. All rights reserved.