Obtain a Java String from the given native byte array. If there is no NUL terminator, the String will comprise the entire array. The encoding is obtained from #getDefaultStringEncoding(). @param buf The buffer containing the encoded bytes @see #toString(byte[], String)
(byte[] buf)
| 489 | * @see #toString(byte[], String) |
| 490 | */ |
| 491 | public static String toString(byte[] buf) { |
| 492 | return toString(buf, getDefaultStringEncoding()); |
| 493 | } |
| 494 | |
| 495 | /** |
| 496 | * Obtain a Java String from the given native byte array, using the given |