response.setHeader("Content-Type", "audio/mpeg");
byte[] buf = new byte[2048];
int len_l;
while (iter.hasNext()) {
Object[] obj = iter.next();
if (obj[0] instanceof File) {
for (int i = 0; i < obj.length; i++) {
File file = (File) obj[i];
File fileWav = new File(dir+file.getName());
FileInputStream fis = new FileInputStream(fileWav);
OutputStream out = response.getOutputStream();
len_l = fis.read(buf);
while (len_l != -1) {
out.write(buf, 0, len_l);
len_l = fis.read(buf);
}
out.flush();
out.close();
fis.close();
// System.out.println(file.getName() + " ");
//
// listArr.add(file.getName());
}
}
}