org.apache.commons.collections.primitives.adapters
public class IteratorByteIterator extends Object implements ByteIterator
java.lang.Number Number
-valued
Iterator Iterator
to the ByteIterator
interface.
This implementation delegates most methods
to the provided Iterator Iterator
implementation in the "obvious" way.
Since: Commons Primitives 1.0
Version: $Revision: 1.3 $ $Date: 2003/10/16 20:49:39 $
Field Summary | |
---|---|
Iterator | _iterator |
Constructor Summary | |
---|---|
IteratorByteIterator(Iterator iterator)
Creates an ByteIterator wrapping
the specified Iterator Iterator . |
Method Summary | |
---|---|
boolean | hasNext() |
byte | next() |
void | remove() |
static ByteIterator | wrap(Iterator iterator)
Create an ByteIterator wrapping
the specified Iterator Iterator . |
ByteIterator
wrapping
the specified Iterator Iterator
. When
the given iterator is null
,
returns null
.
Parameters: iterator the (possibly null
)
Iterator Iterator
to wrap
Returns: an ByteIterator
wrapping the given
iterator, or null
when iterator is
null
.