private static DelimiterBasedFrameDecoder wordDecoder ( ) { return new DelimiterBasedFrameDecoder ( 256 , IntStream . of ( ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' ) . mapToObj ( delim -> wrappedBuffer ( new byte [ ] { ( byte ) delim } ) ) . toArray ( ByteBuf [ ] :: new ) ) ; }
skip things that aren t words roughly