Package org.cactoos.iterator
Class IteratorOfBytes
- java.lang.Object
-
- org.cactoos.iterator.IteratorOfBytes
-
-
Constructor Summary
Constructors Constructor Description IteratorOfBytes(byte... itms)
Ctor.IteratorOfBytes(String str)
Ctor.IteratorOfBytes(Bytes bytes)
Ctor.IteratorOfBytes(Text txt)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Byte
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
IteratorOfBytes
public IteratorOfBytes(Text txt)
Ctor.- Parameters:
txt
- Text to iterate
-
IteratorOfBytes
public IteratorOfBytes(String str)
Ctor.- Parameters:
str
- String to iterate
-
IteratorOfBytes
public IteratorOfBytes(Bytes bytes)
Ctor.- Parameters:
bytes
- Bytes to iterate
-
IteratorOfBytes
public IteratorOfBytes(byte... itms)
Ctor.- Parameters:
itms
- Items to iterate
-
-