Package io.datarouter.bytes.split
Class ByteChunkSplitter<T>
java.lang.Object
io.datarouter.bytes.split.ByteChunkSplitter<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionByteChunkSplitter(Supplier<ByteChunkSplitterCollector<T>> collectorSupplier) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ByteChunkSplitter.ParsedByteChunk<T> split(byte[] chunk, byte delimiter, boolean skipFirst, ByteChunkSplitterCollector<T> collector) split(io.datarouter.scanner.Scanner<byte[]> byteArrays, io.datarouter.scanner.Threads threads, byte delimiter, boolean skipFirst)
-
Constructor Details
-
ByteChunkSplitter
-
-
Method Details
-
split
-
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.
-