Packages

abstract class ByteIterator extends BufferedIterator[Byte]

An iterator over a ByteString.

Linear Supertypes
BufferedIterator[Byte], Iterator[Byte], IterableOnceOps[Byte, Iterator, Iterator[Byte]], IterableOnce[Byte], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ByteIterator
  2. BufferedIterator
  3. Iterator
  4. IterableOnceOps
  5. IterableOnce
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ByteIterator()

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]]
    Definition Classes
    Iterator

Abstract Value Members

  1. 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.

  2. abstract def clear(): Unit
    Attributes
    protected
  3. abstract def copyToBuffer(buffer: ByteBuffer): Int

    For performance sensitive code, call take() directly on ByteString (it's optimised there)

  4. 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.

  5. abstract def getDoubles(xs: Array[Double], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type

    Get a number of Doubles from this iterator.

  6. abstract def getFloats(xs: Array[Float], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type

    Get a number of Floats from this iterator.

  7. abstract def getInts(xs: Array[Int], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type

    Get a number of Ints from this iterator.

  8. abstract def getLongs(xs: Array[Long], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type

    Get a number of Longs from this iterator.

  9. abstract def getShorts(xs: Array[Short], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type

    Get a number of Shorts from this iterator.

  10. abstract def hasNext: Boolean
    Definition Classes
    Iterator
  11. abstract def head: Byte
    Definition Classes
    ByteIterator → BufferedIterator
  12. abstract def len: Int
  13. abstract def next(): Byte
    Definition Classes
    ByteIterator → Iterator
  14. abstract def toByteString: ByteString

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++(that: IterableOnce[Byte]): ByteIterator
  4. final def ++[B >: Byte](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def addString(b: StringBuilder): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  7. final def addString(b: StringBuilder, sep: String): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  8. def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
    Definition Classes
    IterableOnceOps
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def buffered: ByteIterator.this.type
    Definition Classes
    BufferedIterator → Iterator
  11. def clone(): ByteIterator
    Definition Classes
    ByteIterator → AnyRef
  12. def collect[B](pf: PartialFunction[Byte, B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  13. def collectFirst[B](pf: PartialFunction[Byte, B]): Option[B]
    Definition Classes
    IterableOnceOps
  14. def concat[B >: Byte](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  15. def contains(elem: Any): Boolean
    Definition Classes
    Iterator
  16. def copyToArray[B >: Byte](xs: Array[B], start: Int, len: Int): Int
    Definition Classes
    IterableOnceOps
  17. def copyToArray[B >: Byte](xs: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  18. def copyToArray[B >: Byte](xs: Array[B]): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  19. def corresponds[B](that: IterableOnce[B])(p: (Byte, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  20. def count(p: (Byte) => Boolean): Int
    Definition Classes
    IterableOnceOps
  21. def distinct: Iterator[Byte]
    Definition Classes
    Iterator
  22. def distinctBy[B](f: (Byte) => B): Iterator[Byte]
    Definition Classes
    Iterator
  23. def drop(n: Int): ByteIterator.this.type
    Definition Classes
    ByteIterator → Iterator → IterableOnceOps
  24. def dropWhile(p: (Byte) => Boolean): ByteIterator.this.type
    Definition Classes
    ByteIterator → Iterator → IterableOnceOps
  25. def duplicate: (ByteIterator, ByteIterator)
    Definition Classes
    ByteIterator → Iterator
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  28. def exists(p: (Byte) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  29. def filter(p: (Byte) => Boolean): Iterator[Byte]
    Definition Classes
    Iterator → IterableOnceOps
  30. def filterNot(p: (Byte) => Boolean): Iterator[Byte]
    Definition Classes
    Iterator → IterableOnceOps
  31. def find(p: (Byte) => Boolean): Option[Byte]
    Definition Classes
    IterableOnceOps
  32. def flatMap[B](f: (Byte) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  33. def flatten[B](implicit ev: (Byte) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  34. def fold[A1 >: Byte](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  35. def foldLeft[B](z: B)(op: (B, Byte) => B): B
    Definition Classes
    ByteIterator → IterableOnceOps
  36. def foldRight[B](z: B)(op: (Byte, B) => B): B
    Definition Classes
    IterableOnceOps
  37. def forall(p: (Byte) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  38. def foreach[U](f: (Byte) => U): Unit
    Definition Classes
    ByteIterator → IterableOnceOps
  39. def getByte: Byte

    Get a single Byte from this iterator.

    Get a single Byte from this iterator. Identical to next().

  40. 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.

  41. 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.

  42. 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.

  43. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  44. def getDouble(implicit byteOrder: ByteOrder): Double
  45. def getDoubles(xs: Array[Double])(implicit byteOrder: ByteOrder): ByteIterator.this.type

    Get a number of Doubles from this iterator.

  46. def getFloat(implicit byteOrder: ByteOrder): Float
  47. def getFloats(xs: Array[Float])(implicit byteOrder: ByteOrder): ByteIterator.this.type

    Get a number of Floats from this iterator.

  48. def getInt(implicit byteOrder: ByteOrder): Int

    Get a single Int from this iterator.

  49. def getInts(xs: Array[Int])(implicit byteOrder: ByteOrder): ByteIterator.this.type

    Get a number of Ints from this iterator.

  50. def getLong(implicit byteOrder: ByteOrder): Long

    Get a single Long from this iterator.

  51. def getLongPart(n: Int)(implicit byteOrder: ByteOrder): Long

    Get a Long from this iterator where only the least significant n bytes were encoded.

  52. def getLongs(xs: Array[Long])(implicit byteOrder: ByteOrder): ByteIterator.this.type

    Get a number of Longs from this iterator.

  53. def getShort(implicit byteOrder: ByteOrder): Short

    Get a single Short from this iterator.

  54. def getShorts(xs: Array[Short])(implicit byteOrder: ByteOrder): ByteIterator.this.type

    Get a number of Shorts from this iterator.

  55. def grouped[B >: Byte](size: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  56. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  57. def headOption: Option[Byte]
    Definition Classes
    BufferedIterator
  58. def indexOf[B >: Byte](elem: B, from: Int): Int
    Definition Classes
    ByteIterator → Iterator
  59. def indexOf[B >: Byte](elem: B): Int
    Definition Classes
    ByteIterator → Iterator
  60. def indexOf(elem: Byte, from: Int): Int
  61. def indexOf(elem: Byte): Int
  62. def indexWhere(p: (Byte) => Boolean, from: Int = 0): Int
    Definition Classes
    ByteIterator → Iterator
  63. def isEmpty: Boolean
    Definition Classes
    Iterator → IterableOnceOps
    Annotations
    @deprecatedOverriding()
  64. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  65. def isTraversableAgain: Boolean
    Definition Classes
    IterableOnceOps
  66. final def iterator: Iterator[Byte]
    Definition Classes
    Iterator → IterableOnce
    Annotations
    @inline()
  67. def knownSize: Int
    Definition Classes
    IterableOnce
  68. final def length: Int
    Definition Classes
    Iterator
    Annotations
    @inline()
  69. def map[B](f: (Byte) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  70. def max[B >: Byte](implicit ord: Ordering[B]): Byte
    Definition Classes
    IterableOnceOps
  71. def maxBy[B](f: (Byte) => B)(implicit ord: Ordering[B]): Byte
    Definition Classes
    IterableOnceOps
  72. def maxByOption[B](f: (Byte) => B)(implicit ord: Ordering[B]): Option[Byte]
    Definition Classes
    IterableOnceOps
  73. def maxOption[B >: Byte](implicit ord: Ordering[B]): Option[Byte]
    Definition Classes
    IterableOnceOps
  74. def min[B >: Byte](implicit ord: Ordering[B]): Byte
    Definition Classes
    IterableOnceOps
  75. def minBy[B](f: (Byte) => B)(implicit ord: Ordering[B]): Byte
    Definition Classes
    IterableOnceOps
  76. def minByOption[B](f: (Byte) => B)(implicit ord: Ordering[B]): Option[Byte]
    Definition Classes
    IterableOnceOps
  77. def minOption[B >: Byte](implicit ord: Ordering[B]): Option[Byte]
    Definition Classes
    IterableOnceOps
  78. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  79. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  80. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  81. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  82. def nextOption(): Option[Byte]
    Definition Classes
    Iterator
  83. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  84. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  85. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  86. def padTo[B >: Byte](len: Int, elem: B): Iterator[B]
    Definition Classes
    Iterator
  87. def partition(p: (Byte) => Boolean): (Iterator[Byte], Iterator[Byte])
    Definition Classes
    Iterator
  88. def patch[B >: Byte](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
    Definition Classes
    Iterator
  89. def product[B >: Byte](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  90. def reduce[B >: Byte](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  91. def reduceLeft[B >: Byte](op: (B, Byte) => B): B
    Definition Classes
    IterableOnceOps
  92. def reduceLeftOption[B >: Byte](op: (B, Byte) => B): Option[B]
    Definition Classes
    IterableOnceOps
  93. def reduceOption[B >: Byte](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  94. def reduceRight[B >: Byte](op: (Byte, B) => B): B
    Definition Classes
    IterableOnceOps
  95. def reduceRightOption[B >: Byte](op: (Byte, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  96. def reversed: Iterable[Byte]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  97. def sameElements[B >: Byte](that: IterableOnce[B]): Boolean
    Definition Classes
    Iterator
  98. def scanLeft[B](z: B)(op: (B, Byte) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  99. def size: Int
    Definition Classes
    IterableOnceOps
  100. def slice(from: Int, until: Int): ByteIterator.this.type
    Definition Classes
    ByteIterator → Iterator → IterableOnceOps
  101. def sliceIterator(from: Int, until: Int): Iterator[Byte]
    Attributes
    protected
    Definition Classes
    Iterator
  102. def sliding[B >: Byte](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  103. def span(p: (Byte) => Boolean): (ByteIterator, ByteIterator)
    Definition Classes
    ByteIterator → Iterator → IterableOnceOps
  104. def splitAt(n: Int): (Iterator[Byte], Iterator[Byte])
    Definition Classes
    IterableOnceOps
  105. def stepper[S <: Stepper[_]](implicit shape: StepperShape[Byte, S]): S
    Definition Classes
    IterableOnce
  106. def sum[B >: Byte](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  107. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  108. def take(n: Int): ByteIterator.this.type
    Definition Classes
    ByteIterator → Iterator → IterableOnceOps
  109. def takeWhile(p: (Byte) => Boolean): ByteIterator.this.type
    Definition Classes
    ByteIterator → Iterator → IterableOnceOps
  110. def tapEach[U](f: (Byte) => U): Iterator[Byte]
    Definition Classes
    Iterator → IterableOnceOps
  111. def to[C1](factory: Factory[Byte, C1]): C1
    Definition Classes
    IterableOnceOps
  112. def toArray[B >: Byte](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    ByteIterator → IterableOnceOps
  113. final def toBuffer[B >: Byte]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  114. def toIndexedSeq: IndexedSeq[Byte]
    Definition Classes
    IterableOnceOps
  115. def toList: List[Byte]
    Definition Classes
    IterableOnceOps
  116. def toMap[K, V](implicit ev: <:<[Byte, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  117. def toSeq: ByteString
    Definition Classes
    ByteIterator → IterableOnceOps
  118. def toSet[B >: Byte]: Set[B]
    Definition Classes
    IterableOnceOps
  119. def toString(): String
    Definition Classes
    Iterator → AnyRef → Any
  120. def toVector: Vector[Byte]
    Definition Classes
    IterableOnceOps
  121. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  122. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  123. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  124. def withFilter(p: (Byte) => Boolean): Iterator[Byte]
    Definition Classes
    Iterator
  125. def zip[B](that: IterableOnce[B]): Iterator[(Byte, B)]
    Definition Classes
    Iterator
  126. def zipAll[A1 >: Byte, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
    Definition Classes
    Iterator
  127. def zipWithIndex: Iterator[(Byte, Int)]
    Definition Classes
    Iterator → IterableOnceOps

Deprecated Value Members

  1. 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 /:

  2. 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 :\

  3. 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. Use foldLeft(z)(seqop) instead.

  4. 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

  5. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  6. 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

  7. 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.

  8. def seq: ByteIterator.this.type
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Iterator.seq always returns the iterator itself

  9. final def toIterator: Iterator[Byte]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator instead of .toIterator

  10. final def toStream: Stream[Byte]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .to(LazyList) instead of .toStream

Inherited from BufferedIterator[Byte]

Inherited from Iterator[Byte]

Inherited from IterableOnceOps[Byte, Iterator, Iterator[Byte]]

Inherited from IterableOnce[Byte]

Inherited from AnyRef

Inherited from Any

Ungrouped