Class BindingInputStream

All Implemented Interfaces:
Iterator<Binding>, org.apache.jena.atlas.lib.Closeable

public class BindingInputStream extends LangEngine implements Iterator<Binding>, org.apache.jena.atlas.lib.Closeable
Language for reading in a stream of bindings. See BindingIO


  • Directives:
    • VARS - list of variables.
    • PREFIX
  • Lines of RDF terms (Turtle, no triple-quoted strings)
  • Items on line align with last VARS declaration
  • * for "same as last row"
  • - for "undef"
  • Constructor Details

    • BindingInputStream

      public BindingInputStream(InputStream in)
    • BindingInputStream

      public BindingInputStream(Tokenizer tokenizer)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Binding>
    • next

      public Binding next()
      Specified by:
      next in interface Iterator<Binding>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<Binding>
    • vars

      public List<Var> vars()
    • close

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