Class TextParser
- java.lang.Object
-
- org.thymeleaf.templateparser.text.TextParser
-
final class TextParser extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classTextParser.BufferPool
-
Field Summary
Fields Modifier and Type Field Description private TextParser.BufferPoolpoolprivate booleanprocessCommentsAndLiteralsprivate booleanstandardDialectPresent
-
Constructor Summary
Constructors Constructor Description TextParser(int poolSize, int bufferSize, boolean processCommentsAndLiterals, boolean standardDialectPresent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparse(java.io.Reader reader, ITextHandler handler)voidparse(java.lang.String document, ITextHandler handler)private voidparseBuffer(char[] buffer, int offset, int len, ITextHandler handler, TextParseStatus status)(package private) voidparseDocument(java.io.Reader reader, int suggestedBufferSize, ITextHandler handler)
-
-
-
Field Detail
-
pool
private final TextParser.BufferPool pool
-
processCommentsAndLiterals
private final boolean processCommentsAndLiterals
-
standardDialectPresent
private final boolean standardDialectPresent
-
-
Method Detail
-
parse
public void parse(java.lang.String document, ITextHandler handler) throws TextParseException- Throws:
TextParseException
-
parse
public void parse(java.io.Reader reader, ITextHandler handler) throws TextParseException- Throws:
TextParseException
-
parseDocument
void parseDocument(java.io.Reader reader, int suggestedBufferSize, ITextHandler handler) throws TextParseException- Throws:
TextParseException
-
parseBuffer
private void parseBuffer(char[] buffer, int offset, int len, ITextHandler handler, TextParseStatus status) throws TextParseException- Throws:
TextParseException
-
-