Removed Buffered Input Stream for performance reasons

This commit is contained in:
Ziver Koc 2015-04-22 15:38:04 +00:00
parent 1455ec57f9
commit 909ad1db7c

View file

@ -122,7 +122,8 @@ public class HttpFilePage implements HttpPage{
out.setHeader("Content-Type", getMIMEType(file)); out.setHeader("Content-Type", getMIMEType(file));
out.flush(); out.flush();
BufferedInputStream in = new BufferedInputStream(new FileInputStream(file)); //InputStream in = new BufferedInputStream(new FileInputStream(file));
InputStream in = new FileInputStream(file);
IOUtil.copyStream(in, out); IOUtil.copyStream(in, out);
in.close(); in.close();
} }