Package org.jsoup.parser
Class TokenData
java.lang.Object
org.jsoup.parser.TokenData
A value holder for Tokens, as the stream is Tokenized. Can hold a String or a StringBuilder.
The goal is to minimize String copies -- the tokenizer tries to read the entirety of the token's data in one it, and set that as the simple String value. But if it turns out we need to append, fall back to a StringBuilder, which we get out of the pool (to reduce the GC load).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
-
builder
-
-
Constructor Details
-
TokenData
TokenData()
-
-
Method Details