Constructor and Description |
---|
BinaryChunkIterator(DataInputStream in,
int recordSize)
Instantiates a new Binary chunk iterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
byte[] |
next() |
static <T> Stream<T> |
toIterator(Iterator<T> iterator)
To iterator stream.
|
Stream<byte[]> |
toStream()
To stream stream.
|
static <T> Stream<T> |
toStream(Iterator<T> iterator)
To stream stream.
|
static <T> Stream<T> |
toStream(Iterator<T> iterator,
int size)
To stream stream.
|
static <T> Stream<T> |
toStream(Iterator<T> iterator,
int size,
boolean parallel)
To stream stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
public BinaryChunkIterator(DataInputStream in, int recordSize)
in
- the inrecordSize
- the record sizepublic static <T> Stream<T> toIterator(@Nonnull Iterator<T> iterator)
T
- the type parameteriterator
- the iteratorpublic static <T> Stream<T> toStream(@Nonnull Iterator<T> iterator)
T
- the type parameteriterator
- the iteratorpublic static <T> Stream<T> toStream(@Nonnull Iterator<T> iterator, int size)
T
- the type parameteriterator
- the iteratorsize
- the sizepublic static <T> Stream<T> toStream(@Nonnull Iterator<T> iterator, int size, boolean parallel)
T
- the type parameteriterator
- the iteratorsize
- the sizeparallel
- the parallelpublic Stream<byte[]> toStream()
Copyright © 2019 SimiaCryptus Software. All rights reserved.