主要是看到方老师这一招 想偷学 求赐教{:soso_e102:}{:soso_e102:}
想问一下 myeclipse中如何自定义快捷键 如 按下ctrl+rw可以写出
InputStream in = null;
OutputStream out = null;
try {
in = new FileInputStream(path);
int len = 0;
byte[] buf = new byte[1024];
out = response.getOutputStream();
while ((len = in.read(buf)) > 0) {
out.write(buf, 0, len);
}
} finally {
if (in != null) {
try {
in.close();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
if (out != null) {
try {
out.close();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
|
|