Class TokenizerJSON

java.lang.Object
org.apache.jena.atlas.json.io.parser.TokenizerJSON
All Implemented Interfaces:
Iterator<Token>, org.apache.jena.atlas.lib.Closeable, Tokenizer

public class TokenizerJSON extends Object implements Tokenizer
Tokenizer for all sorts of things JSON-ish
  • Constructor Details

    • TokenizerJSON

      public TokenizerJSON(org.apache.jena.atlas.io.PeekReader reader)
  • Method Details

    • hasNext

      public final boolean hasNext()
      Description copied from interface: Tokenizer
      Is there another token?
      Specified by:
      hasNext in interface Iterator<Token>
      Specified by:
      hasNext in interface Tokenizer
    • eof

      public final boolean eof()
      Description copied from interface: Tokenizer
      End of tokens?
      Specified by:
      eof in interface Tokenizer
    • next

      public final Token next()
      Move to next token
      Specified by:
      next in interface Iterator<Token>
      Specified by:
      next in interface Tokenizer
    • peek

      public final Token peek()
      Description copied from interface: Tokenizer
      Peek next token : null for no token.
      Specified by:
      peek in interface Tokenizer
    • getColumn

      public long getColumn()
      Specified by:
      getColumn in interface Tokenizer
    • getLine

      public long getLine()
      Specified by:
      getLine in interface Tokenizer
    • close

      public void close()
      Specified by:
      close in interface org.apache.jena.atlas.lib.Closeable