Package akka.util
Class ByteIterator.MultiByteArrayIterator
- java.lang.Object
-
- akka.util.ByteIterator
-
- akka.util.ByteIterator.MultiByteArrayIterator
-
- 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>
- Enclosing class:
- ByteIterator
public static class ByteIterator.MultiByteArrayIterator extends ByteIterator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.util.ByteIterator
ByteIterator.ByteArrayIterator, ByteIterator.ByteArrayIterator$, ByteIterator.MultiByteArrayIterator, 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 MultiByteArrayIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteIterator$plus$plus(scala.collection.TraversableOnce<java.lang.Object> that)ByteIterator.MultiByteArrayIterator$plus$plus$colon(ByteIterator.ByteArrayIterator that)java.io.InputStreamasInputStream()Directly wraps this ByteIterator in an InputStream without copying.voidclear()ByteIterator.MultiByteArrayIteratorclone()<B> voidcopyToArray(java.lang.Object xs, int start, int len)intcopyToBuffer(java.nio.ByteBuffer buffer)For performance sensitive code, call copyToBuffer() directly on ByteString (it's optimised there)ByteIterator.ByteArrayIteratorcurrent()ByteIterator.MultiByteArrayIteratordrop(int n)For performance sensitive code, call drop() directly on ByteString (it's optimised there)ByteIterator.MultiByteArrayIteratordropWhile(scala.Function1<java.lang.Object,java.lang.Object> p)<U> voidforeach(scala.Function1<java.lang.Object,U> f)voidforeach$mBc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)voidforeach$mCc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)voidforeach$mDc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)voidforeach$mFc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)voidforeach$mIc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)voidforeach$mJc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)voidforeach$mSc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)voidforeach$mVc$sp(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)voidforeach$mZc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)ByteIterator.MultiByteArrayIteratorgetBytes(byte[] xs, int offset, int n)Get a specific number of Bytes from this iterator.ByteIterator.MultiByteArrayIteratorgetDoubles(double[] xs, int offset, int n, java.nio.ByteOrder byteOrder)Get a number of Doubles from this iterator.ByteIterator.MultiByteArrayIteratorgetFloats(float[] xs, int offset, int n, java.nio.ByteOrder byteOrder)Get a number of Floats from this iterator.ByteIterator.MultiByteArrayIteratorgetInts(int[] xs, int offset, int n, java.nio.ByteOrder byteOrder)Get a number of Ints from this iterator.ByteIterator.MultiByteArrayIteratorgetLongs(long[] xs, int offset, int n, java.nio.ByteOrder byteOrder)Get a number of Longs from this iterator.ByteIterator.MultiByteArrayIteratorgetShorts(short[] xs, int offset, int n, java.nio.ByteOrder byteOrder)Get a number of Shorts from this iterator.protected <A> ByteIterator.MultiByteArrayIteratorgetToArray(java.lang.Object xs, int offset, int n, int elemSize, scala.Function0<A> getSingle, scala.Function3<java.lang.Object,java.lang.Object,java.lang.Object,scala.runtime.BoxedUnit> getMult)booleanhasNext()bytehead()scala.collection.LinearSeq<ByteIterator.ByteArrayIterator>iterators()voiditerators_$eq(scala.collection.LinearSeq<ByteIterator.ByteArrayIterator> x$1)intlen()intlength()bytenext()ByteIterator.MultiByteArrayIteratortake(int n)For performance sensitive code, call take() directly on ByteString (it's optimised there)ByteIterator.MultiByteArrayIteratortakeWhile(scala.Function1<java.lang.Object,java.lang.Object> p)ByteStringtoByteString()-
Methods inherited from class akka.util.ByteIterator
duplicate, foldLeft, foldLeft$mBc$sp, foldLeft$mCc$sp, foldLeft$mDc$sp, foldLeft$mFc$sp, foldLeft$mIc$sp, foldLeft$mJc$sp, foldLeft$mSc$sp, foldLeft$mVc$sp, foldLeft$mZc$sp, getByte, getBytes, getBytes, getByteString, getDouble, getDoubles, getFloat, getFloats, getInt, getInts, getLong, getLongPart, getLongs, getShort, getShorts, indexOf, indexOf, indexOf, indexOf, indexWhere, indexWhere, slice, span, toArray, toSeq
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface scala.collection.Iterator
$plus$plus, collect, contains, corresponds, exists, filter, filterNot, find, flatMap, forall, grouped, hasDefiniteSize, isEmpty, isTraversableAgain, 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
-
-
-
-
Method Detail
-
iterators
public scala.collection.LinearSeq<ByteIterator.ByteArrayIterator> iterators()
-
iterators_$eq
public void iterators_$eq(scala.collection.LinearSeq<ByteIterator.ByteArrayIterator> x$1)
-
current
public ByteIterator.ByteArrayIterator current()
-
clear
public void clear()
- Specified by:
clearin classByteIterator
-
hasNext
public final boolean hasNext()
-
head
public final byte head()
- Specified by:
headin interfacescala.collection.BufferedIterator<java.lang.Object>- Specified by:
headin classByteIterator
-
next
public final byte next()
- Specified by:
nextin interfacescala.collection.Iterator<java.lang.Object>- Specified by:
nextin classByteIterator
-
len
public final int len()
- Specified by:
lenin classByteIterator
-
length
public final int length()
-
$plus$plus$colon
public ByteIterator.MultiByteArrayIterator $plus$plus$colon(ByteIterator.ByteArrayIterator that)
-
$plus$plus
public final ByteIterator $plus$plus(scala.collection.TraversableOnce<java.lang.Object> that)
- Overrides:
$plus$plusin classByteIterator
-
clone
public final ByteIterator.MultiByteArrayIterator clone()
- Overrides:
clonein classByteIterator
-
take
public final ByteIterator.MultiByteArrayIterator take(int n)
For performance sensitive code, call take() directly on ByteString (it's optimised there)- Specified by:
takein interfacescala.collection.Iterator<java.lang.Object>- Overrides:
takein classByteIterator
-
drop
public final ByteIterator.MultiByteArrayIterator drop(int n)
For performance sensitive code, call drop() directly on ByteString (it's optimised there)- Specified by:
dropin interfacescala.collection.Iterator<java.lang.Object>- Overrides:
dropin classByteIterator
-
takeWhile
public final ByteIterator.MultiByteArrayIterator takeWhile(scala.Function1<java.lang.Object,java.lang.Object> p)
- Specified by:
takeWhilein interfacescala.collection.Iterator<java.lang.Object>- Overrides:
takeWhilein classByteIterator
-
dropWhile
public final ByteIterator.MultiByteArrayIterator dropWhile(scala.Function1<java.lang.Object,java.lang.Object> p)
- Specified by:
dropWhilein interfacescala.collection.Iterator<java.lang.Object>- Overrides:
dropWhilein classByteIterator
-
copyToArray
public final <B> void copyToArray(java.lang.Object xs, int start, int len)
-
foreach
public <U> void foreach(scala.Function1<java.lang.Object,U> f)
- Specified by:
foreachin interfacescala.collection.GenTraversableOnce<java.lang.Object>- Specified by:
foreachin interfacescala.collection.Iterator<java.lang.Object>- Specified by:
foreachin interfacescala.collection.TraversableOnce<java.lang.Object>- Overrides:
foreachin classByteIterator
-
toByteString
public final ByteString toByteString()
- Specified by:
toByteStringin classByteIterator
-
getToArray
protected final <A> ByteIterator.MultiByteArrayIterator getToArray(java.lang.Object xs, int offset, int n, int elemSize, scala.Function0<A> getSingle, scala.Function3<java.lang.Object,java.lang.Object,java.lang.Object,scala.runtime.BoxedUnit> getMult)
-
getBytes
public ByteIterator.MultiByteArrayIterator getBytes(byte[] xs, int offset, int n)
Description copied from class:ByteIteratorGet 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.- Specified by:
getBytesin classByteIterator- Parameters:
xs- (undocumented)offset- (undocumented)n- (undocumented)- Returns:
- (undocumented)
-
getShorts
public ByteIterator.MultiByteArrayIterator getShorts(short[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
Description copied from class:ByteIteratorGet a number of Shorts from this iterator.- Specified by:
getShortsin classByteIterator- Parameters:
xs- (undocumented)offset- (undocumented)n- (undocumented)byteOrder- (undocumented)- Returns:
- (undocumented)
-
getInts
public ByteIterator.MultiByteArrayIterator getInts(int[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
Description copied from class:ByteIteratorGet a number of Ints from this iterator.- Specified by:
getIntsin classByteIterator- Parameters:
xs- (undocumented)offset- (undocumented)n- (undocumented)byteOrder- (undocumented)- Returns:
- (undocumented)
-
getLongs
public ByteIterator.MultiByteArrayIterator getLongs(long[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
Description copied from class:ByteIteratorGet a number of Longs from this iterator.- Specified by:
getLongsin classByteIterator- Parameters:
xs- (undocumented)offset- (undocumented)n- (undocumented)byteOrder- (undocumented)- Returns:
- (undocumented)
-
getFloats
public ByteIterator.MultiByteArrayIterator getFloats(float[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
Description copied from class:ByteIteratorGet a number of Floats from this iterator.- Specified by:
getFloatsin classByteIterator- Parameters:
xs- (undocumented)offset- (undocumented)n- (undocumented)byteOrder- (undocumented)- Returns:
- (undocumented)
-
getDoubles
public ByteIterator.MultiByteArrayIterator getDoubles(double[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
Description copied from class:ByteIteratorGet a number of Doubles from this iterator.- Specified by:
getDoublesin classByteIterator- Parameters:
xs- (undocumented)offset- (undocumented)n- (undocumented)byteOrder- (undocumented)- Returns:
- (undocumented)
-
copyToBuffer
public int copyToBuffer(java.nio.ByteBuffer buffer)
For performance sensitive code, call copyToBuffer() directly on ByteString (it's optimised there)- Specified by:
copyToBufferin classByteIterator
-
asInputStream
public java.io.InputStream asInputStream()
Description copied from class:ByteIteratorDirectly wraps this ByteIterator in an InputStream without copying. Read and skip operations on the stream will advance the iterator accordingly.- Specified by:
asInputStreamin classByteIterator- Returns:
- (undocumented)
-
foreach$mZc$sp
public void foreach$mZc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)
- Overrides:
foreach$mZc$spin classByteIterator
-
foreach$mBc$sp
public void foreach$mBc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)
- Overrides:
foreach$mBc$spin classByteIterator
-
foreach$mCc$sp
public void foreach$mCc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)
- Overrides:
foreach$mCc$spin classByteIterator
-
foreach$mDc$sp
public void foreach$mDc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)
- Overrides:
foreach$mDc$spin classByteIterator
-
foreach$mFc$sp
public void foreach$mFc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)
- Overrides:
foreach$mFc$spin classByteIterator
-
foreach$mIc$sp
public void foreach$mIc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)
- Overrides:
foreach$mIc$spin classByteIterator
-
foreach$mJc$sp
public void foreach$mJc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)
- Overrides:
foreach$mJc$spin classByteIterator
-
foreach$mSc$sp
public void foreach$mSc$sp(scala.Function1<java.lang.Object,java.lang.Object> f)
- Overrides:
foreach$mSc$spin classByteIterator
-
foreach$mVc$sp
public void foreach$mVc$sp(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
- Overrides:
foreach$mVc$spin classByteIterator
-
-