| | 260 | /** |
| | 261 | * Sends a string to the server. This method is used to bypass all |
| | 262 | * the processing done by the normal send method, and is most useful |
| | 263 | * for bulk transmissions. It writes the provided string to the socket |
| | 264 | * in a single command, followed by a flush. |
| | 265 | * |
| | 266 | * @see #send |
| | 267 | */ |
| | 268 | public void sendRaw(String s) throws IOException { |
| | 269 | byte[] bytes = s.getBytes(); |
| | 270 | int length = bytes.length; |
| | 271 | |
| | 272 | if (debug) { |
| | 273 | System.out.println("[SEND] " + s); |
| | 274 | } |
| | 275 | |
| | 276 | output.write(bytes, 0, bytes.length); |
| | 277 | |
| | 278 | output.flush(); |
| | 279 | } |
| | 280 | |