com.hp.hpl.jena.graph.query
Interface Pipe

All Known Implementing Classes:
BufferPipe

public interface Pipe

A Pipe is anything that can be used to get and put Domain objects; it can be closed, and it can be tested for whether more elements are available.

Author:
kers

Method Summary
 void close()
          Close the pipe: further operations on it have undefined effects.
 Domain get()
          Answer the next element if there is one, otherwise throw a NoSuchElementException.
 boolean hasNext()
          Answer true iff there are more elements for get() to get.
 void put(Domain d)
          Put a domain element into the pipe for later extraction.
 

Method Detail

hasNext

public boolean hasNext()
Answer true iff there are more elements for get() to get.


get

public Domain get()
Answer the next element if there is one, otherwise throw a NoSuchElementException.


put

public void put(Domain d)
Put a domain element into the pipe for later extraction.


close

public void close()
Close the pipe: further operations on it have undefined effects.



Copyright © 2000-2003 Hewlett-Packard. All Rights Reserved.