由于服务器为LINUX,导出文件无法导入到WINDOWS路径下,所以我做了先写入LINUX路径下,再将文件读取到本地客户端,现在总是报拒绝访问。                      FileName = "abc.xml"//文件名称
                      String xmlPath=System.getProperty("user.dir");//服务器LINUX路径
File newFile = new File(xmlPath);
if (!newFile.exists())
newFile.mkdirs();
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(new File("E:\\ABC")));// 获得文件输出流  将LINUX的路径输出到E:\\ABC下  这里就抛异常了 说拒绝访问
BufferedInputStream bis=new BufferedInputStream(new FileInputStream(new File(FileName)));
int b = 0;
while ((b = bis.read()) != -1) {
bos.write(b);
}
bis.close();
bos.close();
ou.write(xmlPath.getBytes());