class_docstr: Encoder is used by the file sink to perform the actual writing of the
  incoming elements to the files in a bucket.
docstr: A simple Encoder that uses toString() on the input elements and writes them to
  the output bucket file separated by newline.
docstr_tok: ["A","simple","Encoder","that","uses","toString","(",")","on","the","input","elements","and","writes","them","to","the","output","bucket","file","separated","by","newline","."]
code: def simple_string_encoder(charset_name: str = "UTF-8") -> "Encoder":
      """
      A simple Encoder that uses toString() on the input elements and writes them to
      the output bucket file separated by newline.
      """
      j_encoder = get_gateway().jvm.org.apache.flink.api.common.serialization.SimpleStringEncoder(
          charset_name
      )
      return Encoder(j_encoder)
  
imports: from pyflink.common.utils import JavaObjectWrapper
  from pyflink.java_gateway import get_gateway
label_desc: Use image node_id 2 for calling the Encoder obj's underlying member method code with example usage: obj.simple_string_encoder(charset_name) and returns: Encoder