fleSourceTransferFile = File.createTempFile("sos", pstrZipFileNameExtension);
// fleSourceTransferFile.deleteOnExit();
strSourceTransferName = fleSourceTransferFile.getAbsolutePath();
}
catch (Exception e) {
throw new JobSchedulerException("createTempFile returns with an exception", e);
}
try {
logger.info("start compress file");
this.compressFile(fleSourceTransferFile);
}
catch (Exception e) {
e.printStackTrace(System.err);
logger.error(e.getLocalizedMessage(), new JobSchedulerException("SOSGZip returns an exception", e));
// throw new JobSchedulerException("SOSGZip returns an exception", e);
}
return strSourceTransferName;
}