Class TokenizerJSON

  • All Implemented Interfaces:
    java.util.Iterator<Token>, org.apache.jena.atlas.lib.Closeable, Tokenizer

    public class TokenizerJSON
    extends java.lang.Object
    implements Tokenizer
    Tokenizer for all sorts of things JSON-ish
    • Constructor Summary

      Constructors 
      Constructor Description
      TokenizerJSON​(org.apache.jena.atlas.io.PeekReader reader)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean eof()
      End of tokens?
      long getColumn()  
      long getLine()  
      boolean hasNext()
      Is there another token?
      Token next()
      Move to next token
      Token peek()
      Peek next token : null for no token.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Constructor Detail

      • TokenizerJSON

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

      • hasNext

        public final boolean hasNext()
        Description copied from interface: Tokenizer
        Is there another token?
        Specified by:
        hasNext in interface java.util.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 java.util.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
      • 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