All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface COM.objectspace.jgl.InputIterator

public interface InputIterator
extends Enumeration, Cloneable
InputIterator is the interface of all iterators that can read one item at a time in a forward direction. InputIterator is an extension of the java.lang.Enumeration class.

See Also:
OutputIterator, Enumeration

Method Index

 o advance()
Advance by one.
 o advance(int)
Advance by a specified amount.
 o atBegin()
Return true if I'm positioned at the first item of my input stream.
 o atEnd()
Return true if I'm positioned after the last item in my input stream.
 o clone()
Return a clone of myself.
 o get()
Return the object at my current position.
 o isCompatibleWith(InputIterator)
Return true if both iterator and myself can be used as a range.

Methods

 o atBegin
 public abstract boolean atBegin()
Return true if I'm positioned at the first item of my input stream.

 o atEnd
 public abstract boolean atEnd()
Return true if I'm positioned after the last item in my input stream.

 o get
 public abstract Object get()
Return the object at my current position.

 o advance
 public abstract void advance()
Advance by one.

 o advance
 public abstract void advance(int n)
Advance by a specified amount.

Parameters:
n - The amount to advance.
 o clone
 public abstract Object clone()
Return a clone of myself.

Overrides:
clone in class Object
 o isCompatibleWith
 public abstract boolean isCompatibleWith(InputIterator iterator)
Return true if both iterator and myself can be used as a range.


All Packages  Class Hierarchy  This Package  Previous  Next  Index