public class ByteIteratorIterator extends Object implements Iterator
ByteIterator
to the
Iterator
interface.
This implementation delegates most methods
to the provided ByteIterator
implementation in the "obvious" way.Constructor and Description |
---|
ByteIteratorIterator(ByteIterator iterator)
Creates an
Iterator wrapping
the specified ByteIterator . |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
static Iterator |
wrap(ByteIterator iterator)
Create an
Iterator wrapping
the specified ByteIterator . |
public ByteIteratorIterator(ByteIterator iterator)
Iterator
wrapping
the specified ByteIterator
.public static Iterator wrap(ByteIterator iterator)
Iterator
wrapping
the specified ByteIterator
. When
the given iterator is null
,
returns null
.iterator
- the (possibly null
)
ByteIterator
to wrapIterator
wrapping the given
iterator, or null
when iterator is
null
.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.