code: @Override
      public void write(int c) {
          if (matched == length) {
              super.write(prefix, 0, prefix.length());
              matched = 0;
          }
          super.write(c);
          if (c == newline.charAt(matched)) {
              matched++;
              if (matched == length) {
                  flush();
              }
          } else {
              matched = 0;
          }
      }
docs: --