abstract class ByteIterator extends BufferedIterator[Byte]
An iterator over a ByteString.
- Alphabetic
- By Inheritance
- ByteIterator
- BufferedIterator
- Iterator
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ByteIterator()
Type Members
- class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]]
- Definition Classes
- Iterator
Abstract Value Members
- abstract def asInputStream: InputStream
Directly wraps this ByteIterator in an InputStream without copying.
Directly wraps this ByteIterator in an InputStream without copying. Read and skip operations on the stream will advance the iterator accordingly.
- abstract def clear(): Unit
- Attributes
- protected
- abstract def copyToBuffer(buffer: ByteBuffer): Int
For performance sensitive code, call take() directly on ByteString (it's optimised there)
- abstract def getBytes(xs: Array[Byte], offset: Int, n: Int): ByteIterator.this.type
Get a specific number of Bytes from this iterator.
Get a specific number of Bytes from this iterator. In contrast to copyToArray, this method will fail if length < n or if (xs.length - offset) < n.
- abstract def getDoubles(xs: Array[Double], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Doubles from this iterator.
- abstract def getFloats(xs: Array[Float], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Floats from this iterator.
- abstract def getInts(xs: Array[Int], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Ints from this iterator.
- abstract def getLongs(xs: Array[Long], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Longs from this iterator.
- abstract def getShorts(xs: Array[Short], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Shorts from this iterator.
- abstract def hasNext: Boolean
- Definition Classes
- Iterator
- abstract def head: Byte
- Definition Classes
- ByteIterator → BufferedIterator
- abstract def len: Int
- abstract def next(): Byte
- Definition Classes
- ByteIterator → Iterator
- abstract def toByteString: ByteString
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++(that: IterableOnce[Byte]): ByteIterator
- final def ++[B >: Byte](xs: => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def addString(b: StringBuilder): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def addString(b: StringBuilder, sep: String): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
- Definition Classes
- IterableOnceOps
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buffered: ByteIterator.this.type
- Definition Classes
- BufferedIterator → Iterator
- def clone(): ByteIterator
- Definition Classes
- ByteIterator → AnyRef
- def collect[B](pf: PartialFunction[Byte, B]): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[Byte, B]): Option[B]
- Definition Classes
- IterableOnceOps
- def concat[B >: Byte](xs: => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator
- def contains(elem: Any): Boolean
- Definition Classes
- Iterator
- def copyToArray[B >: Byte](xs: Array[B], start: Int, len: Int): Int
- Definition Classes
- IterableOnceOps
- def copyToArray[B >: Byte](xs: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def copyToArray[B >: Byte](xs: Array[B]): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def corresponds[B](that: IterableOnce[B])(p: (Byte, B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: (Byte) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def distinct: Iterator[Byte]
- Definition Classes
- Iterator
- def distinctBy[B](f: (Byte) => B): Iterator[Byte]
- Definition Classes
- Iterator
- def drop(n: Int): ByteIterator.this.type
- Definition Classes
- ByteIterator → Iterator → IterableOnceOps
- def dropWhile(p: (Byte) => Boolean): ByteIterator.this.type
- Definition Classes
- ByteIterator → Iterator → IterableOnceOps
- def duplicate: (ByteIterator, ByteIterator)
- Definition Classes
- ByteIterator → Iterator
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(p: (Byte) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def filter(p: (Byte) => Boolean): Iterator[Byte]
- Definition Classes
- Iterator → IterableOnceOps
- def filterNot(p: (Byte) => Boolean): Iterator[Byte]
- Definition Classes
- Iterator → IterableOnceOps
- def find(p: (Byte) => Boolean): Option[Byte]
- Definition Classes
- IterableOnceOps
- def flatMap[B](f: (Byte) => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def flatten[B](implicit ev: (Byte) => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def fold[A1 >: Byte](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](z: B)(op: (B, Byte) => B): B
- Definition Classes
- ByteIterator → IterableOnceOps
- def foldRight[B](z: B)(op: (Byte, B) => B): B
- Definition Classes
- IterableOnceOps
- def forall(p: (Byte) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def foreach[U](f: (Byte) => U): Unit
- Definition Classes
- ByteIterator → IterableOnceOps
- def getByte: Byte
Get a single Byte from this iterator.
Get a single Byte from this iterator. Identical to next().
- def getByteString(n: Int): ByteString
Get a ByteString with specific number of Bytes from this iterator.
Get a ByteString with specific number of Bytes from this iterator. In contrast to copyToArray, this method will fail if this.len < n.
- def getBytes(n: Int): Array[Byte]
Get a specific number of Bytes from this iterator.
Get a specific number of Bytes from this iterator. In contrast to copyToArray, this method will fail if this.len < n.
- def getBytes(xs: Array[Byte]): ByteIterator.this.type
Get a specific number of Bytes from this iterator.
Get a specific number of Bytes from this iterator. In contrast to copyToArray, this method will fail if this.len < xs.length.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getDouble(implicit byteOrder: ByteOrder): Double
- def getDoubles(xs: Array[Double])(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Doubles from this iterator.
- def getFloat(implicit byteOrder: ByteOrder): Float
- def getFloats(xs: Array[Float])(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Floats from this iterator.
- def getInt(implicit byteOrder: ByteOrder): Int
Get a single Int from this iterator.
- def getInts(xs: Array[Int])(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Ints from this iterator.
- def getLong(implicit byteOrder: ByteOrder): Long
Get a single Long from this iterator.
- def getLongPart(n: Int)(implicit byteOrder: ByteOrder): Long
Get a Long from this iterator where only the least significant
n
bytes were encoded. - def getLongs(xs: Array[Long])(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Longs from this iterator.
- def getShort(implicit byteOrder: ByteOrder): Short
Get a single Short from this iterator.
- def getShorts(xs: Array[Short])(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Shorts from this iterator.
- def grouped[B >: Byte](size: Int): GroupedIterator[B]
- Definition Classes
- Iterator
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def headOption: Option[Byte]
- Definition Classes
- BufferedIterator
- def indexOf[B >: Byte](elem: B, from: Int): Int
- Definition Classes
- ByteIterator → Iterator
- def indexOf[B >: Byte](elem: B): Int
- Definition Classes
- ByteIterator → Iterator
- def indexOf(elem: Byte, from: Int): Int
- def indexOf(elem: Byte): Int
- def indexWhere(p: (Byte) => Boolean, from: Int = 0): Int
- Definition Classes
- ByteIterator → Iterator
- def isEmpty: Boolean
- Definition Classes
- Iterator → IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraversableAgain: Boolean
- Definition Classes
- IterableOnceOps
- final def iterator: Iterator[Byte]
- Definition Classes
- Iterator → IterableOnce
- Annotations
- @inline()
- def knownSize: Int
- Definition Classes
- IterableOnce
- final def length: Int
- Definition Classes
- Iterator
- Annotations
- @inline()
- def map[B](f: (Byte) => B): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def max[B >: Byte](implicit ord: Ordering[B]): Byte
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: (Byte) => B)(implicit ord: Ordering[B]): Byte
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: (Byte) => B)(implicit ord: Ordering[B]): Option[Byte]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: Byte](implicit ord: Ordering[B]): Option[Byte]
- Definition Classes
- IterableOnceOps
- def min[B >: Byte](implicit ord: Ordering[B]): Byte
- Definition Classes
- IterableOnceOps
- def minBy[B](f: (Byte) => B)(implicit ord: Ordering[B]): Byte
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: (Byte) => B)(implicit ord: Ordering[B]): Option[Byte]
- Definition Classes
- IterableOnceOps
- def minOption[B >: Byte](implicit ord: Ordering[B]): Option[Byte]
- Definition Classes
- IterableOnceOps
- final def mkString: String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(sep: String): String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(start: String, sep: String, end: String): String
- Definition Classes
- IterableOnceOps
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nextOption(): Option[Byte]
- Definition Classes
- Iterator
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def padTo[B >: Byte](len: Int, elem: B): Iterator[B]
- Definition Classes
- Iterator
- def partition(p: (Byte) => Boolean): (Iterator[Byte], Iterator[Byte])
- Definition Classes
- Iterator
- def patch[B >: Byte](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
- Definition Classes
- Iterator
- def product[B >: Byte](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def reduce[B >: Byte](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: Byte](op: (B, Byte) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: Byte](op: (B, Byte) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: Byte](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: Byte](op: (Byte, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: Byte](op: (Byte, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reversed: Iterable[Byte]
- Attributes
- protected
- Definition Classes
- IterableOnceOps
- def sameElements[B >: Byte](that: IterableOnce[B]): Boolean
- Definition Classes
- Iterator
- def scanLeft[B](z: B)(op: (B, Byte) => B): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def size: Int
- Definition Classes
- IterableOnceOps
- def slice(from: Int, until: Int): ByteIterator.this.type
- Definition Classes
- ByteIterator → Iterator → IterableOnceOps
- def sliceIterator(from: Int, until: Int): Iterator[Byte]
- Attributes
- protected
- Definition Classes
- Iterator
- def sliding[B >: Byte](size: Int, step: Int): GroupedIterator[B]
- Definition Classes
- Iterator
- def span(p: (Byte) => Boolean): (ByteIterator, ByteIterator)
- Definition Classes
- ByteIterator → Iterator → IterableOnceOps
- def splitAt(n: Int): (Iterator[Byte], Iterator[Byte])
- Definition Classes
- IterableOnceOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[Byte, S]): S
- Definition Classes
- IterableOnce
- def sum[B >: Byte](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(n: Int): ByteIterator.this.type
- Definition Classes
- ByteIterator → Iterator → IterableOnceOps
- def takeWhile(p: (Byte) => Boolean): ByteIterator.this.type
- Definition Classes
- ByteIterator → Iterator → IterableOnceOps
- def tapEach[U](f: (Byte) => U): Iterator[Byte]
- Definition Classes
- Iterator → IterableOnceOps
- def to[C1](factory: Factory[Byte, C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray[B >: Byte](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- ByteIterator → IterableOnceOps
- final def toBuffer[B >: Byte]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def toIndexedSeq: IndexedSeq[Byte]
- Definition Classes
- IterableOnceOps
- def toList: List[Byte]
- Definition Classes
- IterableOnceOps
- def toMap[K, V](implicit ev: <:<[Byte, (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- def toSeq: ByteString
- Definition Classes
- ByteIterator → IterableOnceOps
- def toSet[B >: Byte]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
- Definition Classes
- Iterator → AnyRef → Any
- def toVector: Vector[Byte]
- Definition Classes
- IterableOnceOps
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withFilter(p: (Byte) => Boolean): Iterator[Byte]
- Definition Classes
- Iterator
- def zip[B](that: IterableOnce[B]): Iterator[(Byte, B)]
- Definition Classes
- Iterator
- def zipAll[A1 >: Byte, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
- Definition Classes
- Iterator
- def zipWithIndex: Iterator[(Byte, Int)]
- Definition Classes
- Iterator → IterableOnceOps
Deprecated Value Members
- final def /:[B](z: B)(op: (B, Byte) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- final def :\[B](z: B)(op: (Byte, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldRight instead of :\
- def aggregate[B](z: => B)(seqop: (B, Byte) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0)
aggregate
is not relevant for sequential collections. UsefoldLeft(z)(seqop)
instead.
- final def copyToBuffer[B >: Byte](dest: Buffer[B]): Unit
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
dest ++= coll
instead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- final def hasDefiniteSize: Boolean
- Definition Classes
- Iterator → IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) hasDefiniteSize on Iterator is the same as isEmpty
- def scanRight[B](z: B)(op: (Byte, B) => B): Iterator[B]
- Definition Classes
- Iterator
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Call scanRight on an Iterable instead.
- def seq: ByteIterator.this.type
- Definition Classes
- Iterator
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterator.seq always returns the iterator itself
- final def toIterator: Iterator[Byte]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- final def toStream: Stream[Byte]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream