public class ByteChunkSplitter<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ByteChunkSplitter.ByteChunkParsingScanner<T> |
static class |
ByteChunkSplitter.ParsedByteChunk<T> |
| Constructor and Description |
|---|
ByteChunkSplitter(Supplier<ByteChunkSplitterCollector<T>> collectorSupplier) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ByteChunkSplitter.ParsedByteChunk<T> |
split(byte[] chunk,
byte delimiter,
boolean skipFirst,
ByteChunkSplitterCollector<T> collector) |
io.datarouter.scanner.Scanner<List<T>> |
split(io.datarouter.scanner.Scanner<byte[]> byteArrays,
ExecutorService exec,
int numThreads,
byte delimiter,
boolean skipFirst) |
public ByteChunkSplitter(Supplier<ByteChunkSplitterCollector<T>> collectorSupplier)
public io.datarouter.scanner.Scanner<List<T>> split(io.datarouter.scanner.Scanner<byte[]> byteArrays, ExecutorService exec, int numThreads, byte delimiter, boolean skipFirst)
public static <T> ByteChunkSplitter.ParsedByteChunk<T> split(byte[] chunk, byte delimiter, boolean skipFirst, ByteChunkSplitterCollector<T> collector)
delimiter - Will be returned as the trailing byte of each token.Copyright © 2009–2021. All rights reserved.