Package akka.util

Class ByteIterator

  • All Implemented Interfaces:
    scala.collection.BufferedIterator<java.lang.Object>, scala.collection.GenTraversableOnce<java.lang.Object>, scala.collection.Iterator<java.lang.Object>, scala.collection.TraversableOnce<java.lang.Object>
    Direct Known Subclasses:
    ByteIterator.ByteArrayIterator, ByteIterator.MultiByteArrayIterator

    public abstract class ByteIterator
    extends java.lang.Object
    implements scala.collection.BufferedIterator<java.lang.Object>
    An iterator over a ByteString.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ByteIterator.ByteArrayIterator  
      static class  ByteIterator.ByteArrayIterator$  
      static class  ByteIterator.MultiByteArrayIterator  
      static class  ByteIterator.MultiByteArrayIterator$  
      • Nested classes/interfaces inherited from interface scala.collection.Iterator

        scala.collection.Iterator.ConcatIterator<A extends java.lang.Object>, scala.collection.Iterator.ConcatIteratorCell<A extends java.lang.Object>, scala.collection.Iterator.GroupedIterator<B extends java.lang.Object>, scala.collection.Iterator.SliceIterator<A extends java.lang.Object>
      • Nested classes/interfaces inherited from interface scala.collection.TraversableOnce

        scala.collection.TraversableOnce.BufferedCanBuildFrom<A extends java.lang.Object,​CC extends scala.collection.TraversableOnce<java.lang.Object>>, scala.collection.TraversableOnce.FlattenOps<A extends java.lang.Object>, scala.collection.TraversableOnce.ForceImplicitAmbiguity, scala.collection.TraversableOnce.MonadOps<A extends java.lang.Object>, scala.collection.TraversableOnce.OnceCanBuildFrom<A extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteIterator()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static <B> B $colon$bslash​(B z, scala.Function2<A,​B,​B> op)  
      static <B> B $div$colon​(B z, scala.Function2<B,​A,​B> op)  
      ByteIterator $plus$plus​(scala.collection.TraversableOnce<java.lang.Object> that)  
      static scala.collection.mutable.StringBuilder addString​(scala.collection.mutable.StringBuilder b)  
      static scala.collection.mutable.StringBuilder addString​(scala.collection.mutable.StringBuilder b, java.lang.String sep)  
      static scala.collection.mutable.StringBuilder addString​(scala.collection.mutable.StringBuilder b, java.lang.String start, java.lang.String sep, java.lang.String end)  
      static <B> B aggregate​(scala.Function0<B> z, scala.Function2<B,​A,​B> seqop, scala.Function2<B,​B,​B> combop)  
      abstract java.io.InputStream asInputStream()
      Directly wraps this ByteIterator in an InputStream without copying.
      static scala.collection.BufferedIterator<A> buffered()  
      protected abstract void clear()  
      ByteIterator clone()  
      static <B> scala.collection.Iterator<B> collect​(scala.PartialFunction<A,​B> pf)  
      static <B> scala.Option<B> collectFirst​(scala.PartialFunction<A,​B> pf)  
      static boolean contains​(java.lang.Object elem)  
      static <B> void copyToArray​(java.lang.Object xs)  
      static <B> void copyToArray​(java.lang.Object xs, int start)  
      static <B> void copyToArray​(java.lang.Object xs, int start, int len)  
      abstract int copyToBuffer​(java.nio.ByteBuffer buffer)
      For performance sensitive code, call take() directly on ByteString (it's optimised there)
      static <B> boolean corresponds​(scala.collection.GenTraversableOnce<B> that, scala.Function2<A,​B,​java.lang.Object> p)  
      static int count​(scala.Function1<A,​java.lang.Object> p)  
      ByteIterator drop​(int n)  
      ByteIterator dropWhile​(scala.Function1<java.lang.Object,​java.lang.Object> p)  
      scala.Tuple2<ByteIterator,​ByteIterator> duplicate()  
      static boolean exists​(scala.Function1<A,​java.lang.Object> p)  
      static scala.collection.Iterator<A> filter​(scala.Function1<A,​java.lang.Object> p)  
      static scala.collection.Iterator<A> filterNot​(scala.Function1<A,​java.lang.Object> p)  
      static scala.Option<A> find​(scala.Function1<A,​java.lang.Object> p)  
      static <B> scala.collection.Iterator<B> flatMap​(scala.Function1<A,​scala.collection.GenTraversableOnce<B>> f)  
      static <A1> A1 fold​(A1 z, scala.Function2<A1,​A1,​A1> op)  
      <B> B foldLeft​(B z, scala.Function2<B,​java.lang.Object,​B> op)  
      byte foldLeft$mBc$sp​(byte z, scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)  
      char foldLeft$mCc$sp​(char z, scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)  
      double foldLeft$mDc$sp​(double z, scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)  
      float foldLeft$mFc$sp​(float z, scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)  
      int foldLeft$mIc$sp​(int z, scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)  
      long foldLeft$mJc$sp​(long z, scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)  
      short foldLeft$mSc$sp​(short z, scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)  
      void foldLeft$mVc$sp​(scala.runtime.BoxedUnit z, scala.Function2<scala.runtime.BoxedUnit,​java.lang.Object,​scala.runtime.BoxedUnit> op)  
      boolean foldLeft$mZc$sp​(boolean z, scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)  
      static <B> B foldRight​(B z, scala.Function2<A,​B,​B> op)  
      static boolean forall​(scala.Function1<A,​java.lang.Object> p)  
      <U> void foreach​(scala.Function1<java.lang.Object,​U> f)  
      void foreach$mBc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)  
      void foreach$mCc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)  
      void foreach$mDc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)  
      void foreach$mFc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)  
      void foreach$mIc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)  
      void foreach$mJc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)  
      void foreach$mSc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)  
      void foreach$mVc$sp​(scala.Function1<java.lang.Object,​scala.runtime.BoxedUnit> f)  
      void foreach$mZc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)  
      byte getByte()
      Get a single Byte from this iterator.
      ByteIterator getBytes​(byte[] xs)
      Get a specific number of Bytes from this iterator.
      abstract ByteIterator getBytes​(byte[] xs, int offset, int n)
      Get a specific number of Bytes from this iterator.
      byte[] getBytes​(int n)
      Get a specific number of Bytes from this iterator.
      ByteString getByteString​(int n)
      Get a ByteString with specific number of Bytes from this iterator.
      double getDouble​(java.nio.ByteOrder byteOrder)  
      abstract ByteIterator getDoubles​(double[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
      Get a number of Doubles from this iterator.
      ByteIterator getDoubles​(double[] xs, java.nio.ByteOrder byteOrder)
      Get a number of Doubles from this iterator.
      float getFloat​(java.nio.ByteOrder byteOrder)  
      abstract ByteIterator getFloats​(float[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
      Get a number of Floats from this iterator.
      ByteIterator getFloats​(float[] xs, java.nio.ByteOrder byteOrder)
      Get a number of Floats from this iterator.
      int getInt​(java.nio.ByteOrder byteOrder)
      Get a single Int from this iterator.
      abstract ByteIterator getInts​(int[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
      Get a number of Ints from this iterator.
      ByteIterator getInts​(int[] xs, java.nio.ByteOrder byteOrder)
      Get a number of Ints from this iterator.
      long getLong​(java.nio.ByteOrder byteOrder)
      Get a single Long from this iterator.
      long getLongPart​(int n, java.nio.ByteOrder byteOrder)
      Get a Long from this iterator where only the least significant n bytes were encoded.
      abstract ByteIterator getLongs​(long[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
      Get a number of Longs from this iterator.
      ByteIterator getLongs​(long[] xs, java.nio.ByteOrder byteOrder)
      Get a number of Longs from this iterator.
      short getShort​(java.nio.ByteOrder byteOrder)
      Get a single Short from this iterator.
      abstract ByteIterator getShorts​(short[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
      Get a number of Shorts from this iterator.
      ByteIterator getShorts​(short[] xs, java.nio.ByteOrder byteOrder)
      Get a number of Shorts from this iterator.
      static <B> scala.collection.Iterator.GroupedIterator<B> grouped​(int size)  
      static boolean hasDefiniteSize()  
      abstract static boolean hasNext()  
      abstract byte head()  
      static scala.Option<A> headOption()  
      int indexOf​(byte elem)  
      int indexOf​(byte elem, int from)  
      <B> int indexOf​(B elem)  
      <B> int indexOf​(B elem, int from)  
      int indexWhere​(scala.Function1<java.lang.Object,​java.lang.Object> p)  
      int indexWhere​(scala.Function1<java.lang.Object,​java.lang.Object> p, int from)  
      static boolean isEmpty()  
      static boolean isTraversableAgain()  
      abstract int len()  
      static int length()  
      static <B> scala.collection.Iterator<B> map​(scala.Function1<A,​B> f)  
      static <B> A max​(scala.math.Ordering<B> cmp)  
      static <B> A maxBy​(scala.Function1<A,​B> f, scala.math.Ordering<B> cmp)  
      static <B> A min​(scala.math.Ordering<B> cmp)  
      static <B> A minBy​(scala.Function1<A,​B> f, scala.math.Ordering<B> cmp)  
      static java.lang.String mkString()  
      static java.lang.String mkString​(java.lang.String sep)  
      static java.lang.String mkString​(java.lang.String start, java.lang.String sep, java.lang.String end)  
      abstract byte next()  
      static boolean nonEmpty()  
      static <A1> scala.collection.Iterator<A1> padTo​(int len, A1 elem)  
      static scala.Tuple2<scala.collection.Iterator<A>,​scala.collection.Iterator<A>> partition​(scala.Function1<A,​java.lang.Object> p)  
      static <B> scala.collection.Iterator<B> patch​(int from, scala.collection.Iterator<B> patchElems, int replaced)  
      static <B> B product​(scala.math.Numeric<B> num)  
      static <A1> A1 reduce​(scala.Function2<A1,​A1,​A1> op)  
      static <B> B reduceLeft​(scala.Function2<B,​A,​B> op)  
      static <B> scala.Option<B> reduceLeftOption​(scala.Function2<B,​A,​B> op)  
      static <A1> scala.Option<A1> reduceOption​(scala.Function2<A1,​A1,​A1> op)  
      static <B> B reduceRight​(scala.Function2<A,​B,​B> op)  
      static <B> scala.Option<B> reduceRightOption​(scala.Function2<A,​B,​B> op)  
      protected static scala.collection.immutable.List<A> reversed()  
      static boolean sameElements​(scala.collection.Iterator<?> that)  
      static <B> scala.collection.Iterator<B> scanLeft​(B z, scala.Function2<B,​A,​B> op)  
      static <B> scala.collection.Iterator<B> scanRight​(B z, scala.Function2<A,​B,​B> op)  
      static scala.collection.Iterator<A> seq()  
      static int size()  
      protected static int sizeHintIfCheap()  
      ByteIterator slice​(int from, int until)  
      protected static scala.collection.Iterator<A> sliceIterator​(int from, int until)  
      static <B> scala.collection.Iterator.GroupedIterator<B> sliding​(int size, int step)  
      static <B> int sliding$default$2()  
      scala.Tuple2<ByteIterator,​ByteIterator> span​(scala.Function1<java.lang.Object,​java.lang.Object> p)  
      static <B> B sum​(scala.math.Numeric<B> num)  
      ByteIterator take​(int n)  
      ByteIterator takeWhile​(scala.Function1<java.lang.Object,​java.lang.Object> p)  
      static <Col> Col to​(scala.collection.generic.CanBuildFrom<scala.runtime.Nothing$,​A,​Col> cbf)  
      <B> java.lang.Object toArray​(scala.reflect.ClassTag<B> arg0)  
      static <B> scala.collection.mutable.Buffer<B> toBuffer()  
      abstract ByteString toByteString()  
      static scala.collection.immutable.IndexedSeq<A> toIndexedSeq()  
      static scala.collection.Iterable<A> toIterable()  
      static scala.collection.Iterator<A> toIterator()  
      static scala.collection.immutable.List<A> toList()  
      static <T,​U>
      scala.collection.immutable.Map<T,​U>
      toMap​(scala.Predef.$less$colon$less<A,​scala.Tuple2<T,​U>> ev)  
      ByteString toSeq()  
      static <B> scala.collection.immutable.Set<B> toSet()  
      static scala.collection.immutable.Stream<A> toStream()  
      static java.lang.String toString()  
      static scala.collection.Traversable<A> toTraversable()  
      static scala.collection.immutable.Vector<A> toVector()  
      static scala.collection.Iterator<A> withFilter​(scala.Function1<A,​java.lang.Object> p)  
      static <B> scala.collection.Iterator<scala.Tuple2<A,​B>> zip​(scala.collection.Iterator<B> that)  
      static <B,​A1,​B1>
      scala.collection.Iterator<scala.Tuple2<A1,​B1>>
      zipAll​(scala.collection.Iterator<B> that, A1 thisElem, B1 thatElem)  
      static scala.collection.Iterator<scala.Tuple2<A,​java.lang.Object>> zipWithIndex()  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface scala.collection.BufferedIterator

        buffered, headOption
      • Methods inherited from interface scala.collection.GenTraversableOnce

        sizeHintIfCheap
      • Methods inherited from interface scala.collection.Iterator

        $plus$plus, collect, contains, copyToArray, corresponds, exists, filter, filterNot, find, flatMap, forall, grouped, hasDefiniteSize, hasNext, isEmpty, isTraversableAgain, length, map, padTo, partition, patch, sameElements, scanLeft, scanRight, seq, sliceIterator, sliding, sliding$default$2, toIterator, toStream, toString, toTraversable, withFilter, zip, zipAll, zipWithIndex
      • Methods inherited from interface scala.collection.TraversableOnce

        $colon$bslash, $div$colon, addString, addString, addString, aggregate, collectFirst, copyToArray, copyToArray, copyToBuffer, count, fold, foldRight, max, maxBy, min, minBy, mkString, mkString, mkString, nonEmpty, product, reduce, reduceLeft, reduceLeftOption, reduceOption, reduceRight, reduceRightOption, reversed, size, sum, to, toBuffer, toIndexedSeq, toIterable, toList, toMap, toSet, toVector
    • Constructor Detail

      • ByteIterator

        public ByteIterator()
    • Method Detail

      • sizeHintIfCheap

        protected static int sizeHintIfCheap()
      • reversed

        protected static scala.collection.immutable.List<A> reversed()
      • size

        public static int size()
      • nonEmpty

        public static boolean nonEmpty()
      • count

        public static int count​(scala.Function1<A,​java.lang.Object> p)
      • collectFirst

        public static <B> scala.Option<B> collectFirst​(scala.PartialFunction<A,​B> pf)
      • $div$colon

        public static <B> B $div$colon​(B z,
                                       scala.Function2<B,​A,​B> op)
      • $colon$bslash

        public static <B> B $colon$bslash​(B z,
                                          scala.Function2<A,​B,​B> op)
      • foldRight

        public static <B> B foldRight​(B z,
                                      scala.Function2<A,​B,​B> op)
      • reduceLeft

        public static <B> B reduceLeft​(scala.Function2<B,​A,​B> op)
      • reduceRight

        public static <B> B reduceRight​(scala.Function2<A,​B,​B> op)
      • reduceLeftOption

        public static <B> scala.Option<B> reduceLeftOption​(scala.Function2<B,​A,​B> op)
      • reduceRightOption

        public static <B> scala.Option<B> reduceRightOption​(scala.Function2<A,​B,​B> op)
      • reduce

        public static <A1> A1 reduce​(scala.Function2<A1,​A1,​A1> op)
      • reduceOption

        public static <A1> scala.Option<A1> reduceOption​(scala.Function2<A1,​A1,​A1> op)
      • fold

        public static <A1> A1 fold​(A1 z,
                                   scala.Function2<A1,​A1,​A1> op)
      • aggregate

        public static <B> B aggregate​(scala.Function0<B> z,
                                      scala.Function2<B,​A,​B> seqop,
                                      scala.Function2<B,​B,​B> combop)
      • sum

        public static <B> B sum​(scala.math.Numeric<B> num)
      • product

        public static <B> B product​(scala.math.Numeric<B> num)
      • min

        public static <B> A min​(scala.math.Ordering<B> cmp)
      • max

        public static <B> A max​(scala.math.Ordering<B> cmp)
      • maxBy

        public static <B> A maxBy​(scala.Function1<A,​B> f,
                                  scala.math.Ordering<B> cmp)
      • minBy

        public static <B> A minBy​(scala.Function1<A,​B> f,
                                  scala.math.Ordering<B> cmp)
      • copyToArray

        public static <B> void copyToArray​(java.lang.Object xs,
                                           int start)
      • copyToArray

        public static <B> void copyToArray​(java.lang.Object xs)
      • toList

        public static scala.collection.immutable.List<A> toList()
      • toIterable

        public static scala.collection.Iterable<A> toIterable()
      • toIndexedSeq

        public static scala.collection.immutable.IndexedSeq<A> toIndexedSeq()
      • toBuffer

        public static <B> scala.collection.mutable.Buffer<B> toBuffer()
      • toSet

        public static <B> scala.collection.immutable.Set<B> toSet()
      • toVector

        public static scala.collection.immutable.Vector<A> toVector()
      • to

        public static <Col> Col to​(scala.collection.generic.CanBuildFrom<scala.runtime.Nothing$,​A,​Col> cbf)
      • toMap

        public static <T,​U> scala.collection.immutable.Map<T,​U> toMap​(scala.Predef.$less$colon$less<A,​scala.Tuple2<T,​U>> ev)
      • mkString

        public static java.lang.String mkString​(java.lang.String start,
                                                java.lang.String sep,
                                                java.lang.String end)
      • mkString

        public static java.lang.String mkString​(java.lang.String sep)
      • mkString

        public static java.lang.String mkString()
      • addString

        public static scala.collection.mutable.StringBuilder addString​(scala.collection.mutable.StringBuilder b,
                                                                       java.lang.String start,
                                                                       java.lang.String sep,
                                                                       java.lang.String end)
      • addString

        public static scala.collection.mutable.StringBuilder addString​(scala.collection.mutable.StringBuilder b,
                                                                       java.lang.String sep)
      • addString

        public static scala.collection.mutable.StringBuilder addString​(scala.collection.mutable.StringBuilder b)
      • seq

        public static scala.collection.Iterator<A> seq()
      • hasNext

        public abstract static boolean hasNext()
      • isEmpty

        public static boolean isEmpty()
      • isTraversableAgain

        public static boolean isTraversableAgain()
      • hasDefiniteSize

        public static boolean hasDefiniteSize()
      • sliceIterator

        protected static scala.collection.Iterator<A> sliceIterator​(int from,
                                                                    int until)
      • map

        public static <B> scala.collection.Iterator<B> map​(scala.Function1<A,​B> f)
      • flatMap

        public static <B> scala.collection.Iterator<B> flatMap​(scala.Function1<A,​scala.collection.GenTraversableOnce<B>> f)
      • filter

        public static scala.collection.Iterator<A> filter​(scala.Function1<A,​java.lang.Object> p)
      • corresponds

        public static <B> boolean corresponds​(scala.collection.GenTraversableOnce<B> that,
                                              scala.Function2<A,​B,​java.lang.Object> p)
      • withFilter

        public static scala.collection.Iterator<A> withFilter​(scala.Function1<A,​java.lang.Object> p)
      • filterNot

        public static scala.collection.Iterator<A> filterNot​(scala.Function1<A,​java.lang.Object> p)
      • collect

        public static <B> scala.collection.Iterator<B> collect​(scala.PartialFunction<A,​B> pf)
      • scanLeft

        public static <B> scala.collection.Iterator<B> scanLeft​(B z,
                                                                scala.Function2<B,​A,​B> op)
      • scanRight

        public static <B> scala.collection.Iterator<B> scanRight​(B z,
                                                                 scala.Function2<A,​B,​B> op)
      • partition

        public static scala.Tuple2<scala.collection.Iterator<A>,​scala.collection.Iterator<A>> partition​(scala.Function1<A,​java.lang.Object> p)
      • zip

        public static <B> scala.collection.Iterator<scala.Tuple2<A,​B>> zip​(scala.collection.Iterator<B> that)
      • padTo

        public static <A1> scala.collection.Iterator<A1> padTo​(int len,
                                                               A1 elem)
      • zipWithIndex

        public static scala.collection.Iterator<scala.Tuple2<A,​java.lang.Object>> zipWithIndex()
      • zipAll

        public static <B,​A1,​B1> scala.collection.Iterator<scala.Tuple2<A1,​B1>> zipAll​(scala.collection.Iterator<B> that,
                                                                                                        A1 thisElem,
                                                                                                        B1 thatElem)
      • forall

        public static boolean forall​(scala.Function1<A,​java.lang.Object> p)
      • exists

        public static boolean exists​(scala.Function1<A,​java.lang.Object> p)
      • contains

        public static boolean contains​(java.lang.Object elem)
      • find

        public static scala.Option<A> find​(scala.Function1<A,​java.lang.Object> p)
      • grouped

        public static <B> scala.collection.Iterator.GroupedIterator<B> grouped​(int size)
      • sliding

        public static <B> scala.collection.Iterator.GroupedIterator<B> sliding​(int size,
                                                                               int step)
      • sliding$default$2

        public static <B> int sliding$default$2()
      • length

        public static int length()
      • patch

        public static <B> scala.collection.Iterator<B> patch​(int from,
                                                             scala.collection.Iterator<B> patchElems,
                                                             int replaced)
      • copyToArray

        public static <B> void copyToArray​(java.lang.Object xs,
                                           int start,
                                           int len)
      • sameElements

        public static boolean sameElements​(scala.collection.Iterator<?> that)
      • toTraversable

        public static scala.collection.Traversable<A> toTraversable()
      • toIterator

        public static scala.collection.Iterator<A> toIterator()
      • toStream

        public static scala.collection.immutable.Stream<A> toStream()
      • toString

        public static java.lang.String toString()
      • headOption

        public static scala.Option<A> headOption()
      • buffered

        public static scala.collection.BufferedIterator<A> buffered()
      • len

        public abstract int len()
      • head

        public abstract byte head()
        Specified by:
        head in interface scala.collection.BufferedIterator<java.lang.Object>
      • next

        public abstract byte next()
        Specified by:
        next in interface scala.collection.Iterator<java.lang.Object>
      • clear

        protected abstract void clear()
      • $plus$plus

        public ByteIterator $plus$plus​(scala.collection.TraversableOnce<java.lang.Object> that)
      • clone

        public ByteIterator clone()
        Overrides:
        clone in class java.lang.Object
      • duplicate

        public scala.Tuple2<ByteIterator,​ByteIterator> duplicate()
        Specified by:
        duplicate in interface scala.collection.Iterator<java.lang.Object>
      • take

        public ByteIterator take​(int n)
        Specified by:
        take in interface scala.collection.Iterator<java.lang.Object>
      • drop

        public ByteIterator drop​(int n)
        Specified by:
        drop in interface scala.collection.Iterator<java.lang.Object>
      • slice

        public ByteIterator slice​(int from,
                                  int until)
        Specified by:
        slice in interface scala.collection.Iterator<java.lang.Object>
      • takeWhile

        public ByteIterator takeWhile​(scala.Function1<java.lang.Object,​java.lang.Object> p)
        Specified by:
        takeWhile in interface scala.collection.Iterator<java.lang.Object>
      • dropWhile

        public ByteIterator dropWhile​(scala.Function1<java.lang.Object,​java.lang.Object> p)
        Specified by:
        dropWhile in interface scala.collection.Iterator<java.lang.Object>
      • span

        public scala.Tuple2<ByteIterator,​ByteIterator> span​(scala.Function1<java.lang.Object,​java.lang.Object> p)
        Specified by:
        span in interface scala.collection.Iterator<java.lang.Object>
      • indexWhere

        public int indexWhere​(scala.Function1<java.lang.Object,​java.lang.Object> p)
        Specified by:
        indexWhere in interface scala.collection.Iterator<java.lang.Object>
      • indexWhere

        public int indexWhere​(scala.Function1<java.lang.Object,​java.lang.Object> p,
                              int from)
        Specified by:
        indexWhere in interface scala.collection.Iterator<java.lang.Object>
      • indexOf

        public int indexOf​(byte elem)
      • indexOf

        public int indexOf​(byte elem,
                           int from)
      • indexOf

        public <B> int indexOf​(B elem)
        Specified by:
        indexOf in interface scala.collection.Iterator<java.lang.Object>
      • indexOf

        public <B> int indexOf​(B elem,
                               int from)
        Specified by:
        indexOf in interface scala.collection.Iterator<java.lang.Object>
      • toByteString

        public abstract ByteString toByteString()
      • toSeq

        public ByteString toSeq()
        Specified by:
        toSeq in interface scala.collection.GenTraversableOnce<java.lang.Object>
        Specified by:
        toSeq in interface scala.collection.TraversableOnce<java.lang.Object>
      • foreach

        public <U> void foreach​(scala.Function1<java.lang.Object,​U> f)
        Specified by:
        foreach in interface scala.collection.GenTraversableOnce<java.lang.Object>
        Specified by:
        foreach in interface scala.collection.Iterator<java.lang.Object>
        Specified by:
        foreach in interface scala.collection.TraversableOnce<java.lang.Object>
      • foldLeft

        public <B> B foldLeft​(B z,
                              scala.Function2<B,​java.lang.Object,​B> op)
        Specified by:
        foldLeft in interface scala.collection.GenTraversableOnce<java.lang.Object>
        Specified by:
        foldLeft in interface scala.collection.TraversableOnce<java.lang.Object>
      • toArray

        public <B> java.lang.Object toArray​(scala.reflect.ClassTag<B> arg0)
        Specified by:
        toArray in interface scala.collection.GenTraversableOnce<java.lang.Object>
        Specified by:
        toArray in interface scala.collection.TraversableOnce<java.lang.Object>
      • getByte

        public byte getByte()
        Get a single Byte from this iterator. Identical to next().
        Returns:
        (undocumented)
      • getShort

        public short getShort​(java.nio.ByteOrder byteOrder)
        Get a single Short from this iterator.
        Parameters:
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getInt

        public int getInt​(java.nio.ByteOrder byteOrder)
        Get a single Int from this iterator.
        Parameters:
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getLong

        public long getLong​(java.nio.ByteOrder byteOrder)
        Get a single Long from this iterator.
        Parameters:
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getLongPart

        public long getLongPart​(int n,
                                java.nio.ByteOrder byteOrder)
        Get a Long from this iterator where only the least significant n bytes were encoded.
        Parameters:
        n - (undocumented)
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getFloat

        public float getFloat​(java.nio.ByteOrder byteOrder)
      • getDouble

        public double getDouble​(java.nio.ByteOrder byteOrder)
      • getBytes

        public ByteIterator getBytes​(byte[] xs)
        Get a specific number of Bytes from this iterator. In contrast to copyToArray, this method will fail if this.len &lt; xs.length.
        Parameters:
        xs - (undocumented)
        Returns:
        (undocumented)
      • getBytes

        public abstract ByteIterator getBytes​(byte[] xs,
                                              int offset,
                                              int n)
        Get a specific number of Bytes from this iterator. In contrast to copyToArray, this method will fail if length &lt; n or if (xs.length - offset) &lt; n.
        Parameters:
        xs - (undocumented)
        offset - (undocumented)
        n - (undocumented)
        Returns:
        (undocumented)
      • getBytes

        public byte[] getBytes​(int n)
        Get a specific number of Bytes from this iterator. In contrast to copyToArray, this method will fail if this.len &lt; n.
        Parameters:
        n - (undocumented)
        Returns:
        (undocumented)
      • getByteString

        public ByteString getByteString​(int n)
        Get a ByteString with specific number of Bytes from this iterator. In contrast to copyToArray, this method will fail if this.len &lt; n.
        Parameters:
        n - (undocumented)
        Returns:
        (undocumented)
      • getShorts

        public ByteIterator getShorts​(short[] xs,
                                      java.nio.ByteOrder byteOrder)
        Get a number of Shorts from this iterator.
        Parameters:
        xs - (undocumented)
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getShorts

        public abstract ByteIterator getShorts​(short[] xs,
                                               int offset,
                                               int n,
                                               java.nio.ByteOrder byteOrder)
        Get a number of Shorts from this iterator.
        Parameters:
        xs - (undocumented)
        offset - (undocumented)
        n - (undocumented)
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getInts

        public ByteIterator getInts​(int[] xs,
                                    java.nio.ByteOrder byteOrder)
        Get a number of Ints from this iterator.
        Parameters:
        xs - (undocumented)
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getInts

        public abstract ByteIterator getInts​(int[] xs,
                                             int offset,
                                             int n,
                                             java.nio.ByteOrder byteOrder)
        Get a number of Ints from this iterator.
        Parameters:
        xs - (undocumented)
        offset - (undocumented)
        n - (undocumented)
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getLongs

        public ByteIterator getLongs​(long[] xs,
                                     java.nio.ByteOrder byteOrder)
        Get a number of Longs from this iterator.
        Parameters:
        xs - (undocumented)
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getLongs

        public abstract ByteIterator getLongs​(long[] xs,
                                              int offset,
                                              int n,
                                              java.nio.ByteOrder byteOrder)
        Get a number of Longs from this iterator.
        Parameters:
        xs - (undocumented)
        offset - (undocumented)
        n - (undocumented)
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getFloats

        public ByteIterator getFloats​(float[] xs,
                                      java.nio.ByteOrder byteOrder)
        Get a number of Floats from this iterator.
        Parameters:
        xs - (undocumented)
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getFloats

        public abstract ByteIterator getFloats​(float[] xs,
                                               int offset,
                                               int n,
                                               java.nio.ByteOrder byteOrder)
        Get a number of Floats from this iterator.
        Parameters:
        xs - (undocumented)
        offset - (undocumented)
        n - (undocumented)
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getDoubles

        public ByteIterator getDoubles​(double[] xs,
                                       java.nio.ByteOrder byteOrder)
        Get a number of Doubles from this iterator.
        Parameters:
        xs - (undocumented)
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • getDoubles

        public abstract ByteIterator getDoubles​(double[] xs,
                                                int offset,
                                                int n,
                                                java.nio.ByteOrder byteOrder)
        Get a number of Doubles from this iterator.
        Parameters:
        xs - (undocumented)
        offset - (undocumented)
        n - (undocumented)
        byteOrder - (undocumented)
        Returns:
        (undocumented)
      • copyToBuffer

        public abstract int copyToBuffer​(java.nio.ByteBuffer buffer)
        For performance sensitive code, call take() directly on ByteString (it's optimised there)
      • asInputStream

        public abstract java.io.InputStream asInputStream()
        Directly wraps this ByteIterator in an InputStream without copying. Read and skip operations on the stream will advance the iterator accordingly.
        Returns:
        (undocumented)
      • foreach$mZc$sp

        public void foreach$mZc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)
      • foreach$mBc$sp

        public void foreach$mBc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)
      • foreach$mCc$sp

        public void foreach$mCc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)
      • foreach$mDc$sp

        public void foreach$mDc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)
      • foreach$mFc$sp

        public void foreach$mFc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)
      • foreach$mIc$sp

        public void foreach$mIc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)
      • foreach$mJc$sp

        public void foreach$mJc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)
      • foreach$mSc$sp

        public void foreach$mSc$sp​(scala.Function1<java.lang.Object,​java.lang.Object> f)
      • foreach$mVc$sp

        public void foreach$mVc$sp​(scala.Function1<java.lang.Object,​scala.runtime.BoxedUnit> f)
      • foldLeft$mZc$sp

        public boolean foldLeft$mZc$sp​(boolean z,
                                       scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)
      • foldLeft$mBc$sp

        public byte foldLeft$mBc$sp​(byte z,
                                    scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)
      • foldLeft$mCc$sp

        public char foldLeft$mCc$sp​(char z,
                                    scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)
      • foldLeft$mDc$sp

        public double foldLeft$mDc$sp​(double z,
                                      scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)
      • foldLeft$mFc$sp

        public float foldLeft$mFc$sp​(float z,
                                     scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)
      • foldLeft$mIc$sp

        public int foldLeft$mIc$sp​(int z,
                                   scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)
      • foldLeft$mJc$sp

        public long foldLeft$mJc$sp​(long z,
                                    scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)
      • foldLeft$mSc$sp

        public short foldLeft$mSc$sp​(short z,
                                     scala.Function2<java.lang.Object,​java.lang.Object,​java.lang.Object> op)
      • foldLeft$mVc$sp

        public void foldLeft$mVc$sp​(scala.runtime.BoxedUnit z,
                                    scala.Function2<scala.runtime.BoxedUnit,​java.lang.Object,​scala.runtime.BoxedUnit> op)