(byte[] bytes)
| 71 | } |
| 72 | |
| 73 | public static String decodeToStr(byte[] bytes) { |
| 74 | StringBuilder builder = new StringBuilder(); |
| 75 | for (byte bt : bytes) { |
| 76 | builder.append((char) bt); |
| 77 | } |
| 78 | return builder.toString(); |
| 79 | } |
| 80 | |
| 81 | public static String recvString(InputStream in) throws IOException { |
| 82 | String recvString = null; |
no test coverage detected