예제 #1
0
 private void write(BufferedReader input, DataOutputStream output, Client client)
     throws IOException {
   path = reportGenerator.getPath(client);
   try {
     output.writeBytes(requestHeader(200, 5));
     reportGenerator.generate(path, output);
   } catch (Exception e) {
     output.writeBytes(requestHeader(404, 5));
   }
   output.close();
 }
예제 #2
0
 private String requestHeader(int return_code, int file_type) {
   String s = reportGenerator.statusCode(return_code);
   s = reportGenerator.contentType(5, s);
   return s;
 }