# Interface ByteString.ByteIterator (3.19.4)

    public static interface ByteString.ByteIterator extends Iterator<Byte>

This interface extends `Iterator<Byte>`, so that we can return an unboxed `byte`.

## Implements

[Iterator\<Byte\>](https://docs.oracle.com/javase/8/docs/api/java/util/Iterator<java/lang/Byte>.html)

## Methods

### nextByte()

    public abstract byte nextByte()

An alternative to Iterator#next() that returns an unboxed primitive `byte`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | the next `byte` in the iteration |