code: public static StreamEncoder forEncoder(WritableByteChannel ch,
                                             CharsetEncoder enc,
                                             int minBufferCap)
      {
          return new StreamEncoder(ch, enc, minBufferCap);
      }
docs: Factory for java.nio.channels.Channels.newWriter