code: @Override
      public void write(String str, int off, int len) throws IOException {
          encodedAppender.append(
                  encoder,
                  (encodingStateRegistry != null && off == 0 && len == str.length()) ? encodingStateRegistry
                          .getEncodingStateFor(str) : null, str, off, len);
      }
docs: /*
  (non-Javadoc)
  @see java.io.Writer#write(java.lang.String, int, int)