@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")); }
public static InputSplitter byLineFeed() { return (input, offset, splitSize) -> { if (isWhole(offset, splitSize)) { return input; } return new LineFeedDelimitedInputStream(input, offset, splitSize); }; }
InputSplitters { public static InputSplitter byLineFeed() { return (input, offset, splitSize) -> { if (isWhole(offset, splitSize)) { return input; } return new LineFeedDelimitedInputStream(input, offset, splitSize); }; } }
InputSplitters { public static InputSplitter byLineFeed() { return (input, offset, splitSize) -> { if (isWhole(offset, splitSize)) { return input; } return new LineFeedDelimitedInputStream(input, offset, splitSize); }; } private  InputSplitters(); }
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(); }
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();  }