Package io.datarouter.bytes.split
Class ByteChunkSplitter<T>
java.lang.Object
io.datarouter.bytes.split.ByteChunkSplitter<T>
public class ByteChunkSplitter<T> extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classByteChunkSplitter.ByteChunkParsingScanner<T>static classByteChunkSplitter.ParsedByteChunk<T> -
Constructor Summary
Constructors Constructor Description ByteChunkSplitter(Supplier<ByteChunkSplitterCollector<T>> collectorSupplier) -
Method Summary
Modifier and Type Method 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)
-
Constructor Details
-
ByteChunkSplitter
-
-
Method Details
-
split
public io.datarouter.scanner.Scanner<List<T>> split(io.datarouter.scanner.Scanner<byte[]> byteArrays, ExecutorService exec, int numThreads, byte delimiter, boolean skipFirst) -
split
public static <T> ByteChunkSplitter.ParsedByteChunk<T> split(byte[] chunk, byte delimiter, boolean skipFirst, ByteChunkSplitterCollector<T> collector)- Parameters:
delimiter- Will be returned as the trailing byte of each token.
-