private void compressTOGZfile(String file,String time)throws Exception{
FileInputStream fis = new FileInputStream(new File(file+"_"+time+".xml"));
FileOutputStream fos = new FileOutputStream(new File(file+"_"+time+".xml.gz"));
GZIPOutputStream gos = new GZIPOutputStream(fos);
int count;
byte data[] = new byte[256];
while ((count = fis.read(data, 0, 256)) != -1) {
gos.write(data, 0, count);
}
gos.finish();
gos.flush();
gos.close();
}