(byte[] bytes, int len)
| 79 | } |
| 80 | |
| 81 | public static final String bytesToString(byte[] bytes, int len) { |
| 82 | StringBuilder sb = new StringBuilder(len); |
| 83 | |
| 84 | for (byte b : bytes) { |
| 85 | sb.append((char) b); |
| 86 | } |
| 87 | |
| 88 | return sb.toString(); |
| 89 | } |
| 90 | |
| 91 | public static final String bytesToString(byte[] bytes, int start, int end) { |
| 92 | StringBuilder sb = new StringBuilder(end-start); |