@param s The string @return A NUL-terminated byte buffer equivalent to the given String, using the encoding returned by #getDefaultStringEncoding(). @see #toByteArray(String, String)
(String s)
| 962 | * @see #toByteArray(String, String) |
| 963 | */ |
| 964 | public static byte[] toByteArray(String s) { |
| 965 | return toByteArray(s, getDefaultStringEncoding()); |
| 966 | } |
| 967 | |
| 968 | /** |
| 969 | * @param s The string. Must not be {@code null}. |