Package org.jsoup.parser
Class Token.Character
java.lang.Object
org.jsoup.parser.Token
org.jsoup.parser.Token.Character
- Direct Known Subclasses:
Token.CData
- Enclosing class:
Token
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jsoup.parser.Token
Token.CData, Token.Character, Token.Comment, Token.Doctype, Token.EndTag, Token.EOF, Token.StartTag, Token.Tag, Token.TokenType, Token.XmlDecl -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Token.Character(package private) Token.Character(package private) StringgetData()voidnormalizeNulls(boolean replace) Normalize null chars in the data.(package private) Tokenreset()Reset the data represent by this token, for reuse.toString()Methods inherited from class org.jsoup.parser.Token
asCharacter, asComment, asDoctype, asEndTag, asStartTag, asXmlDecl, endPos, endPos, isCData, isCharacter, isComment, isDoctype, isEndTag, isEOF, isStartTag, startPos, startPos, tokenType
-
Field Details
-
data
-
nullString
-
-
Constructor Details
-
Character
Character() -
Character
Character(Token.Character source) Deep copy
-
-
Method Details
-
reset
Token reset()Description copied from class:TokenReset the data represent by this token, for reuse. Prevents the need to create transfer objects for every piece of data, which immediately get GCed. -
data
-
append
-
getData
String getData() -
toString
-
normalizeNulls
public void normalizeNulls(boolean replace) Normalize null chars in the data. If replace is true, replaces with the replacement char; if false, removes.
-