public static File writeDataToTempFile(final byte[] data,final String suffix){
  try {
    File file=File.createTempFile("jk-",suffix);
    return writeDataToFile(data,file);
  }
 catch (  IOException e) {
    JKExceptionUtil.handle(e);
    return null;
  }
}

public static File writeDataToTempFile ( final byte [ ] data , final String suffix ) { try { File file = File . createTempFile ( "jk-" , suffix ) ; return writeDataToFile ( data , file ) ; } catch ( IOException e ) { JKExceptionUtil . handle ( e ) ; return null ; } }
write data to temp file .
