@Test public void testWriteStop() throws RpcException { w.writeStopConnection(); assertEquals("[XWB]10304\u0005#BYE#\u0004", s.toString()); }
public void writeStopConnection() throws RpcException { try { writer.write(PREFIX + "10" + COUNT_WIDTH + "04\u0005#BYE#" + EOT); } catch (IOException e) { throw new RpcException("unable to write stop connection message", e); } }
NewRpcMessageWriter implements RpcMessageWriter { public void writeStopConnection() throws RpcException { try { writer.write(PREFIX + "10" + COUNT_WIDTH + "04\u0005#BYE#" + EOT); } catch (IOException e) { throw new RpcException("unable to write stop connection message", e); } } }
NewRpcMessageWriter implements RpcMessageWriter { public void writeStopConnection() throws RpcException { try { writer.write(PREFIX + "10" + COUNT_WIDTH + "04\u0005#BYE#" + EOT); } catch (IOException e) { throw new RpcException("unable to write stop connection message", e); } } NewRpcMessageWriter(Writer w); }
NewRpcMessageWriter implements RpcMessageWriter { public void writeStopConnection() throws RpcException { try { writer.write(PREFIX + "10" + COUNT_WIDTH + "04\u0005#BYE#" + EOT); } catch (IOException e) { throw new RpcException("unable to write stop connection message", e); } } NewRpcMessageWriter(Writer w); void writeStartConnection(String hostname, String address, int localPort); void writeStopConnection(); void write(RpcRequest request); void flush(); static String SPack(String str); static String LPack(String str, int nDigits); }
NewRpcMessageWriter implements RpcMessageWriter { public void writeStopConnection() throws RpcException { try { writer.write(PREFIX + "10" + COUNT_WIDTH + "04\u0005#BYE#" + EOT); } catch (IOException e) { throw new RpcException("unable to write stop connection message", e); } } NewRpcMessageWriter(Writer w); void writeStartConnection(String hostname, String address, int localPort); void writeStopConnection(); void write(RpcRequest request); void flush(); static String SPack(String str); static String LPack(String str, int nDigits); static final String PREFIX; }