| com.hp.hpl.jena.graph.query.Pipe
All known Subclasses: com.hp.hpl.jena.graph.query.BufferPipe,
Pipe | public interface Pipe (Code) | | 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. A pipe
may be closed with an exception, in which case hasNext/get will fail with that
exception when they are called.
author: kers |
Method Summary | |
public void | close() Close the pipe. | public void | close(Exception e) Close the pipe (see close()) and record e as its termination
status. | public Domain | get() Answer the next element if there is one, otherwise throw a NoSuchElementException. | public boolean | hasNext() Answer true iff there are more elements for get() to get. | public void | put(Domain d) Put a domain element into the pipe for later extraction. |
close | public void close()(Code) | | Close the pipe. hasNext() will deliver false , and
get will throw an exception.
|
close | public void close(Exception e)(Code) | | Close the pipe (see close()) and record e as its termination
status. Any get from the pipe must then fail, throwing an
exception.
Parameters: e - the exception that caused the pipe to be closed |
get | public Domain get()(Code) | | Answer the next element if there is one, otherwise throw a NoSuchElementException.
|
hasNext | public boolean hasNext()(Code) | | Answer true iff there are more elements for get() to get. If
the pipe was closed with an exception, throw that exception.
|
put | public void put(Domain d)(Code) | | Put a domain element into the pipe for later extraction.
|
|
|