@Test public void testWriteRequestWithNoParameters() throws IOException { RpcRequest r = new RpcRequest("FOO BAR"); try { w.write(r); } catch (RpcException e) { e.printStackTrace(); } assertEquals("{XWB}00037|\u0001000029007XWB;;;;000140FOO BAR^00000", s.toString()); }
public void write(RpcRequest request) throws RpcException { try { writer.write(buildPar1(request)); } catch (IOException e) { throw new RpcException("unable to write request message", e); } }
OldRpcMessageWriter implements RpcMessageWriter { public void write(RpcRequest request) throws RpcException { try { writer.write(buildPar1(request)); } catch (IOException e) { throw new RpcException("unable to write request message", e); } } }
OldRpcMessageWriter implements RpcMessageWriter { public void write(RpcRequest request) throws RpcException { try { writer.write(buildPar1(request)); } catch (IOException e) { throw new RpcException("unable to write request message", e); } } OldRpcMessageWriter(Writer w); }
OldRpcMessageWriter implements RpcMessageWriter { public void write(RpcRequest request) throws RpcException { try { writer.write(buildPar1(request)); } catch (IOException e) { throw new RpcException("unable to write request message", e); } } OldRpcMessageWriter(Writer w); void writeStartConnection(String hostname, String address, int localPort); void writeStopConnection(); void write(RpcRequest request); void flush(); static String buildApi(String n, String p, long f); static String buildHdr(String wkid, String winh, String prch, String wish); static String strPack(String n, int p); static String varPack(String n); }
OldRpcMessageWriter implements RpcMessageWriter { public void write(RpcRequest request) throws RpcException { try { writer.write(buildPar1(request)); } catch (IOException e) { throw new RpcException("unable to write request message", e); } } OldRpcMessageWriter(Writer w); void writeStartConnection(String hostname, String address, int localPort); void writeStopConnection(); void write(RpcRequest request); void flush(); static String buildApi(String n, String p, long f); static String buildHdr(String wkid, String winh, String prch, String wish); static String strPack(String n, int p); static String varPack(String n); static final String PREFIX; }