test code
This commit is contained in:
snoop 2017-05-18 12:24:42 +09:00
parent 17bfa2d458
commit 4283748b71

View File

@ -117,7 +117,7 @@ public class Server {
try {
Object obj = crawler.get(req.getId());
writefff((byte[])obj);
Output reply = Output.newBuilder()
.setData(ByteString.copyFrom((byte[])obj))
@ -132,22 +132,6 @@ public class Server {
}
}
public void writefff(byte[] aaa) {
try {
FileOutputStream fos = new FileOutputStream("/home/cm2/1212.txt");
fos.write(aaa);
fos.close();
BufferedWriter out = new BufferedWriter(new FileWriter("/home/cm2/1212str.txt"));
out.write(new String(aaa,0,aaa.length));
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
static class ConfigImpl extends ConfigGrpc.ConfigImplBase {