Class SNBTTokenizer
java.lang.Object
de.pauleff.formats.snbt.SNBTTokenizer
Tokenizer for SNBT (Stringified NBT) format.
Breaks down SNBT strings into tokens for parsing.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a single token in the SNBT input.static enumEnumeration of all token types recognized by the SNBT tokenizer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInput()Returns the original input string.Returns the next token from the input stream.
-
Constructor Details
-
SNBTTokenizer
Creates a tokenizer for SNBT input.- Parameters:
input- the SNBT string to tokenize, null is treated as empty string
-
-
Method Details
-
nextToken
Returns the next token from the input stream.- Returns:
- the next token
- Throws:
SNBTException- if tokenization fails due to invalid syntax
-
getInput
Returns the original input string.- Returns:
- the input string being tokenized
-