public static class ByteIterator.ByteArrayIterator extends ByteIterator
ByteIterator.ByteArrayIterator, ByteIterator.ByteArrayIterator$, ByteIterator.MultiByteArrayIterator, ByteIterator.MultiByteArrayIterator$scala.collection.Iterator.ConcatIterator<A>, scala.collection.Iterator.ConcatIteratorCell<A>, scala.collection.Iterator.GroupedIterator<B>, scala.collection.Iterator.SliceIterator<A>scala.collection.TraversableOnce.BufferedCanBuildFrom<A,CC extends scala.collection.TraversableOnce<java.lang.Object>>, scala.collection.TraversableOnce.FlattenOps<A>, scala.collection.TraversableOnce.ForceImplicitAmbiguity, scala.collection.TraversableOnce.MonadOps<A>, scala.collection.TraversableOnce.OnceCanBuildFrom<A>| Modifier and Type | Method and Description |
|---|---|
byte[] |
array() |
java.io.InputStream |
asInputStream()
Directly wraps this ByteIterator in an InputStream without copying.
|
void |
clear() |
ByteIterator.ByteArrayIterator |
clone() |
<B> void |
copyToArray(java.lang.Object xs,
int start,
int len) |
int |
copyToBuffer(java.nio.ByteBuffer buffer)
For performance sensitive code, call take() directly on ByteString (it's optimised there)
|
ByteIterator.ByteArrayIterator |
drop(int n) |
ByteIterator.ByteArrayIterator |
dropWhile(scala.Function1<java.lang.Object,java.lang.Object> p) |
int |
from() |
ByteIterator.ByteArrayIterator |
getBytes(byte[] xs,
int offset,
int n)
Get a specific number of Bytes from this iterator.
|
ByteIterator.ByteArrayIterator |
getDoubles(double[] xs,
int offset,
int n,
java.nio.ByteOrder byteOrder)
Get a number of Doubles from this iterator.
|
ByteIterator.ByteArrayIterator |
getFloats(float[] xs,
int offset,
int n,
java.nio.ByteOrder byteOrder)
Get a number of Floats from this iterator.
|
ByteIterator.ByteArrayIterator |
getInts(int[] xs,
int offset,
int n,
java.nio.ByteOrder byteOrder)
Get a number of Ints from this iterator.
|
ByteIterator.ByteArrayIterator |
getLongs(long[] xs,
int offset,
int n,
java.nio.ByteOrder byteOrder)
Get a number of Longs from this iterator.
|
ByteIterator.ByteArrayIterator |
getShorts(short[] xs,
int offset,
int n,
java.nio.ByteOrder byteOrder)
Get a number of Shorts from this iterator.
|
boolean |
hasNext() |
byte |
head() |
int |
len() |
int |
length() |
byte |
next() |
ByteIterator.ByteArrayIterator |
take(int n) |
ByteIterator.ByteArrayIterator |
takeWhile(scala.Function1<java.lang.Object,java.lang.Object> p) |
ByteString |
toByteString() |
int |
until() |
$colon$bslash, $div$colon, $plus$plus, addString, addString, addString, aggregate, buffered, collect, collectFirst, contains, copyToArray, copyToArray, corresponds, count, duplicate, exists, filter, filterNot, find, flatMap, fold, foldLeft, foldRight, forall, foreach, getByte, getBytes, getBytes, getByteString, getDouble, getDoubles, getFloat, getFloats, getInt, getInts, getLong, getLongPart, getLongs, getShort, getShorts, grouped, hasDefiniteSize, headOption, indexOf, indexOf, indexWhere, isEmpty, isTraversableAgain, map, max, maxBy, min, minBy, mkString, mkString, mkString, nonEmpty, padTo, partition, patch, product, reduce, reduceLeft, reduceLeftOption, reduceOption, reduceRight, reduceRightOption, reversed, sameElements, scanLeft, scanRight, seq, size, sizeHintIfCheap, slice, sliceIterator, sliding, sliding$default$2, span, sum, to, toArray, toBuffer, toIndexedSeq, toIterable, toIterator, toList, toMap, toSeq, toSet, toStream, toString, toTraversable, toVector, withFilter, zip, zipAll, zipWithIndexequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait$init$, $plus$plus, apply, collect, contains, continually, corresponds, empty, exists, fill, filter, filterNot, find, flatMap, forall, from, from, grouped, hasDefiniteSize, indexOf, indexWhere, isEmpty, isTraversableAgain, iterate, IteratorCanBuildFrom, map, padTo, partition, patch, range, range, sameElements, scanLeft, scanRight, seq, single, sliceIterator, sliding, sliding$default$2, tabulate, toIterator, toStream, toString, toTraversable, withFilter, zip, zipAll, zipWithIndex$colon$bslash, $div$colon, $init$, addString, addString, addString, aggregate, alternateImplicit, collectFirst, copyToArray, copyToArray, copyToBuffer, count, flattenTraversableOnce, fold, foldRight, max, maxBy, min, minBy, mkString, mkString, mkString, MonadOps, nonEmpty, OnceCanBuildFrom, product, reduce, reduceLeft, reduceLeftOption, reduceOption, reduceRight, reduceRightOption, reversed, size, sum, to, toBuffer, toIndexedSeq, toIterable, toList, toMap, toSet, toVectorpublic byte[] array()
public int from()
public int until()
public final int len()
len in class ByteIteratorpublic final boolean hasNext()
hasNext in interface scala.collection.Iterator<java.lang.Object>hasNext in class ByteIteratorpublic final byte head()
head in interface scala.collection.BufferedIterator<java.lang.Object>head in class ByteIteratorpublic final byte next()
next in interface scala.collection.Iterator<java.lang.Object>next in class ByteIteratorpublic void clear()
clear in class ByteIteratorpublic final int length()
length in interface scala.collection.Iterator<java.lang.Object>length in class ByteIteratorpublic final ByteIterator.ByteArrayIterator clone()
clone in class ByteIteratorpublic final ByteIterator.ByteArrayIterator take(int n)
take in interface scala.collection.Iterator<java.lang.Object>take in class ByteIteratorpublic final ByteIterator.ByteArrayIterator drop(int n)
drop in interface scala.collection.Iterator<java.lang.Object>drop in class ByteIteratorpublic final ByteIterator.ByteArrayIterator takeWhile(scala.Function1<java.lang.Object,java.lang.Object> p)
takeWhile in interface scala.collection.Iterator<java.lang.Object>takeWhile in class ByteIteratorpublic final ByteIterator.ByteArrayIterator dropWhile(scala.Function1<java.lang.Object,java.lang.Object> p)
dropWhile in interface scala.collection.Iterator<java.lang.Object>dropWhile in class ByteIteratorpublic final <B> void copyToArray(java.lang.Object xs,
int start,
int len)
copyToArray in interface scala.collection.GenTraversableOnce<java.lang.Object>copyToArray in interface scala.collection.Iterator<java.lang.Object>copyToArray in interface scala.collection.TraversableOnce<java.lang.Object>copyToArray in class ByteIteratorpublic final ByteString toByteString()
toByteString in class ByteIteratorpublic ByteIterator.ByteArrayIterator getBytes(byte[] xs, int offset, int n)
ByteIteratorgetBytes in class ByteIteratorxs - (undocumented)offset - (undocumented)n - (undocumented)public ByteIterator.ByteArrayIterator getShorts(short[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
ByteIteratorgetShorts in class ByteIteratorxs - (undocumented)offset - (undocumented)n - (undocumented)byteOrder - (undocumented)public ByteIterator.ByteArrayIterator getInts(int[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
ByteIteratorgetInts in class ByteIteratorxs - (undocumented)offset - (undocumented)n - (undocumented)byteOrder - (undocumented)public ByteIterator.ByteArrayIterator getLongs(long[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
ByteIteratorgetLongs in class ByteIteratorxs - (undocumented)offset - (undocumented)n - (undocumented)byteOrder - (undocumented)public ByteIterator.ByteArrayIterator getFloats(float[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
ByteIteratorgetFloats in class ByteIteratorxs - (undocumented)offset - (undocumented)n - (undocumented)byteOrder - (undocumented)public ByteIterator.ByteArrayIterator getDoubles(double[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
ByteIteratorgetDoubles in class ByteIteratorxs - (undocumented)offset - (undocumented)n - (undocumented)byteOrder - (undocumented)public int copyToBuffer(java.nio.ByteBuffer buffer)
ByteIteratorcopyToBuffer in class ByteIteratorpublic java.io.InputStream asInputStream()
ByteIteratorasInputStream in class ByteIterator