Package org.thymeleaf.util
Class LazyEscapingCharSequence
Object
org.thymeleaf.util.AbstractLazyCharSequence
org.thymeleaf.util.LazyEscapingCharSequence
- All Implemented Interfaces:
CharSequence,IWritableCharSequence
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.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Constructor Summary
ConstructorsConstructorDescriptionLazyEscapingCharSequence(IEngineConfiguration configuration, TemplateMode templateMode, Object input) -
Method Summary
Methods inherited from class org.thymeleaf.util.AbstractLazyCharSequence
charAt, equals, hashCode, length, subSequence, toString, writeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints
-
Constructor Details
-
LazyEscapingCharSequence
public LazyEscapingCharSequence(IEngineConfiguration configuration, TemplateMode templateMode, Object input)
-
-
Method Details
-
resolveText
- Specified by:
resolveTextin classAbstractLazyCharSequence
-
writeUnresolved
- Specified by:
writeUnresolvedin classAbstractLazyCharSequence- Throws:
IOException
-