(InputStream in)
| 79 | } |
| 80 | |
| 81 | public static String recvString(InputStream in) throws IOException { |
| 82 | String recvString = null; |
| 83 | int len = wrapBytes(Utils.recvAll(in, 4)).getInt(); |
| 84 | recvString = decodeToStr(Utils.recvAll(in, len)); |
| 85 | return recvString; |
| 86 | } |
| 87 | |
| 88 | public static void sendString(OutputStream out, String string) throws IOException { |
| 89 | out.write(toBytes(string.length())); |
no test coverage detected