Class TokenizerText

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

    public final class TokenizerText
    extends java.lang.Object
    implements Tokenizer
    Tokenizer for all sorts of things RDF-ish
    • Method Detail

      • fromString

        public static Tokenizer fromString​(java.lang.String string)
      • 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()
        Description copied from interface: Tokenizer
        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
      • close

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

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