|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.util.ByteIterator akka.util.ByteIterator.MultiByteArrayIterator
public static class ByteIterator.MultiByteArrayIterator
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>, scala.collection.Iterator.GroupedIterator<B>, scala.collection.Iterator.JoinIterator<A> |
Nested classes/interfaces inherited from interface scala.collection.TraversableOnce |
---|
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> |
Method Summary | ||
---|---|---|
java.io.InputStream |
asInputStream()
Directly wraps this ByteIterator in an InputStream without copying. |
|
void |
clear()
|
|
ByteIterator.MultiByteArrayIterator |
clone()
|
|
|
copyToArray(java.lang.Object xs,
int start,
int len)
|
|
int |
copyToBuffer(java.nio.ByteBuffer buffer)
Copy as many bytes as possible to a ByteBuffer, starting from it's current position. |
|
ByteIterator.MultiByteArrayIterator |
drop(int n)
|
|
ByteIterator.MultiByteArrayIterator |
dropWhile(scala.Function1<java.lang.Object,java.lang.Object> p)
|
|
|
foreach(scala.Function1<java.lang.Object,U> f)
|
|
ByteIterator.MultiByteArrayIterator |
getBytes(byte[] xs,
int offset,
int n)
Get a specific number of Bytes from this iterator. |
|
ByteIterator.MultiByteArrayIterator |
getDoubles(double[] xs,
int offset,
int n,
java.nio.ByteOrder byteOrder)
Get a number of Doubles from this iterator. |
|
ByteIterator.MultiByteArrayIterator |
getFloats(float[] xs,
int offset,
int n,
java.nio.ByteOrder byteOrder)
Get a number of Floats from this iterator. |
|
ByteIterator.MultiByteArrayIterator |
getInts(int[] xs,
int offset,
int n,
java.nio.ByteOrder byteOrder)
Get a number of Ints from this iterator. |
|
ByteIterator.MultiByteArrayIterator |
getLongs(long[] xs,
int offset,
int n,
java.nio.ByteOrder byteOrder)
Get a number of Longs from this iterator. |
|
ByteIterator.MultiByteArrayIterator |
getShorts(short[] xs,
int offset,
int n,
java.nio.ByteOrder byteOrder)
Get a number of Shorts from this iterator. |
|
protected
|
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)
|
|
boolean |
hasNext()
|
|
byte |
head()
|
|
int |
len()
|
|
int |
length()
|
|
byte |
next()
|
|
ByteIterator.MultiByteArrayIterator |
take(int n)
|
|
ByteIterator.MultiByteArrayIterator |
takeWhile(scala.Function1<java.lang.Object,java.lang.Object> p)
|
|
ByteString |
toByteString()
|
Methods inherited from class akka.util.ByteIterator |
---|
duplicate, foldLeft, getByte, getBytes, getDouble, getDoubles, getFloat, getFloats, getInt, getInts, getLong, getLongPart, getLongs, getShort, getShorts, indexOf, indexOf, 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.BufferedIterator |
---|
buffered |
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, 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 |
---|
public void clear()
clear
in class ByteIterator
public final boolean hasNext()
public final byte head()
head
in interface scala.collection.BufferedIterator<java.lang.Object>
head
in class ByteIterator
public final byte next()
next
in interface scala.collection.Iterator<java.lang.Object>
next
in class ByteIterator
public final int len()
len
in class ByteIterator
public final int length()
public final ByteIterator.MultiByteArrayIterator clone()
clone
in class ByteIterator
public final ByteIterator.MultiByteArrayIterator take(int n)
take
in interface scala.collection.Iterator<java.lang.Object>
take
in class ByteIterator
public final ByteIterator.MultiByteArrayIterator drop(int n)
drop
in interface scala.collection.Iterator<java.lang.Object>
drop
in class ByteIterator
public final ByteIterator.MultiByteArrayIterator takeWhile(scala.Function1<java.lang.Object,java.lang.Object> p)
takeWhile
in interface scala.collection.Iterator<java.lang.Object>
takeWhile
in class ByteIterator
public final ByteIterator.MultiByteArrayIterator dropWhile(scala.Function1<java.lang.Object,java.lang.Object> p)
dropWhile
in interface scala.collection.Iterator<java.lang.Object>
dropWhile
in class ByteIterator
public final <B> void copyToArray(java.lang.Object xs, int start, int len)
public <U> void foreach(scala.Function1<java.lang.Object,U> f)
foreach
in interface scala.collection.GenTraversableOnce<java.lang.Object>
foreach
in interface scala.collection.Iterator<java.lang.Object>
foreach
in interface scala.collection.TraversableOnce<java.lang.Object>
foreach
in class ByteIterator
public final ByteString toByteString()
toByteString
in class ByteIterator
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)
public ByteIterator.MultiByteArrayIterator getBytes(byte[] xs, int offset, int n)
ByteIterator
getBytes
in class ByteIterator
xs
- (undocumented)offset
- (undocumented)n
- (undocumented)
public ByteIterator.MultiByteArrayIterator getShorts(short[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
ByteIterator
getShorts
in class ByteIterator
xs
- (undocumented)offset
- (undocumented)n
- (undocumented)byteOrder
- (undocumented)
public ByteIterator.MultiByteArrayIterator getInts(int[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
ByteIterator
getInts
in class ByteIterator
xs
- (undocumented)offset
- (undocumented)n
- (undocumented)byteOrder
- (undocumented)
public ByteIterator.MultiByteArrayIterator getLongs(long[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
ByteIterator
getLongs
in class ByteIterator
xs
- (undocumented)offset
- (undocumented)n
- (undocumented)byteOrder
- (undocumented)
public ByteIterator.MultiByteArrayIterator getFloats(float[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
ByteIterator
getFloats
in class ByteIterator
xs
- (undocumented)offset
- (undocumented)n
- (undocumented)byteOrder
- (undocumented)
public ByteIterator.MultiByteArrayIterator getDoubles(double[] xs, int offset, int n, java.nio.ByteOrder byteOrder)
ByteIterator
getDoubles
in class ByteIterator
xs
- (undocumented)offset
- (undocumented)n
- (undocumented)byteOrder
- (undocumented)
public int copyToBuffer(java.nio.ByteBuffer buffer)
ByteIterator
copyToBuffer
in class ByteIterator
buffer
- a ByteBuffer to copy bytes to
public java.io.InputStream asInputStream()
ByteIterator
asInputStream
in class ByteIterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |