Convert this String into bytes according to the platform's default character encoding, storing the result into a new byte array.
()
| 294 | * Convert this String into bytes according to the platform's default character encoding, storing the result into a new byte array. |
| 295 | */ |
| 296 | public byte[] getBytes(){ |
| 297 | try { |
| 298 | return getBytes("UTF-8"); |
| 299 | } catch(java.io.UnsupportedEncodingException e) { |
| 300 | // dumbass checked exception |
| 301 | return null; |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | private static native byte[] charsToBytes(char[] arr, char[] encoding); |
| 306 |