Class SNBTTokenizer

java.lang.Object
de.pauleff.formats.snbt.SNBTTokenizer

public class SNBTTokenizer extends Object
Tokenizer for SNBT (Stringified NBT) format. Breaks down SNBT strings into tokens for parsing.
  • Constructor Details

    • SNBTTokenizer

      public SNBTTokenizer(String input)
      Creates a tokenizer for SNBT input.
      Parameters:
      input - the SNBT string to tokenize, null is treated as empty string
  • Method Details

    • nextToken

      public SNBTTokenizer.Token nextToken() throws SNBTException
      Returns the next token from the input stream.
      Returns:
      the next token
      Throws:
      SNBTException - if tokenization fails due to invalid syntax
    • getInput

      public String getInput()
      Returns the original input string.
      Returns:
      the input string being tokenized