@Test public void testStrPack() { assertEquals("0003foo", OldRpcMessageWriter.strPack("foo", 4)); }
public static String strPack(String n, int p) { return String.format("%0" + p + "d%s", n.length(), n); }
OldRpcMessageWriter implements RpcMessageWriter { public static String strPack(String n, int p) { return String.format("%0" + p + "d%s", n.length(), n); } }
OldRpcMessageWriter implements RpcMessageWriter { public static String strPack(String n, int p) { return String.format("%0" + p + "d%s", n.length(), n); } OldRpcMessageWriter(Writer w); }
OldRpcMessageWriter implements RpcMessageWriter { public static String strPack(String n, int p) { return String.format("%0" + p + "d%s", n.length(), n); } 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 static String strPack(String n, int p) { return String.format("%0" + p + "d%s", n.length(), n); } 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; }