Date: 2004-05-13T07:27:44
Editor: MichaelMcGrady <[EMAIL PROTECTED]>
Wiki: Apache Struts Wiki
Page: StrutsCatalogEschewUrlForProtocol
URL: http://wiki.apache.org/struts/StrutsCatalogEschewUrlForProtocol
no comment
Change Log:
------------------------------------------------------------------------------
@@ -100,13 +100,9 @@
FileInputStream fis = new FileInputStream(fileName);
BufferedInputStream bis = new BufferedInputStream(fis);
byte[] bytes = new byte[bis.available()];
- long getOS = new java.util.Date().getTime();
OutputStream os = response.getOutputStream();
- long readIS = new java.util.Date().getTime();
bis.read(bytes);
- long writeOS = new java.util.Date().getTime();
os.write(bytes);
- long done = new java.util.Date().getTime(); os.flush();
os.close();
} catch (IOException ioe) {
StdOut.redirect("log.error","WriteResponse: problem file is: " + fileName +
"\n" + StackTrace.trace(ioe));
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]