larksuite-oapi/src/main/java/com/larksuite/oapi/okio1_17/ByteString.java
public static ByteString encodeString(String s, Charset charset) {
    if (s == null) throw new IllegalArgumentException("s == null");
    if (charset == null) throw new IllegalArgumentException("charset == null");
    return new ByteString(s.getBytes(charset));
  }
/** Returns a new byte string containing the {@code charset}-encoded bytes of {@code s}. */
Returns a new byte string containing the  charset-encoded bytes of  s.
Returns a new byte string containing the charset - encoded bytes of s .
public static ByteString encodeString(String s, Charset charset) {
    if (s == null) throw new IllegalArgumentException("s == null");
    if (charset == null) throw new IllegalArgumentException("charset == null");
    return new ByteString(s.getBytes(charset));
  }
public static ByteString encodeString ( String s , Charset charset ) { if ( s == null ) throw new IllegalArgumentException ( "s == null" ) ; if ( charset == null ) throw new IllegalArgumentException ( "charset == null" ) ; return new ByteString ( s . getBytes ( charset ) ) ; }
Returns a new byte string containing the {@code charset}-encoded bytes of {@code s}.
Returns a new byte string containing the { @code charset } - encoded bytes of { @code s } .