View Javadoc
1   package org.davidmoten.text.utils;
2   
3   import java.io.IOException;
4   
5   public interface LineConsumer {
6   
7       void write(char[] chars, int offset, int length) throws IOException;
8   
9       void writeNewLine() throws IOException;
10  
11      default void write(String s) throws IOException {
12          char[] chars = s.toCharArray();
13          write(chars, 0, chars.length);
14      }
15  }