### Question:
InputSplitters { public static InputSplitter byLineFeed() { return (input, offset, splitSize) -> { if (isWhole(offset, splitSize)) { return input; } return new LineFeedDelimitedInputStream(input, offset, splitSize); }; } private  InputSplitters(); static InputSplitter byLineFeed();  }### Answer:
@Test public void simple() { InputSplitter splitter = InputSplitters.byLineFeed(); String result = process("AAA\nBBB\nCCC|\nDDD\nEEE\n", splitter, false); assertThat(result, is("BBB\nCCC\n")); }
@Test public void without_escape_whole() { InputSplitter splitter = InputSplitters.byLineFeed(); String result = process("Hello, world!", splitter, true); assertThat(result, is("Hello, world!")); }