docs: public void write(int c) {
          if (c != -1) {
              current.append((char)c);
          }
          if (c == '\n') {
              current = new StringBuilder();
              lines.add(current);
          }
      }