+ ext = "";
+
+ // Check counters
+ Date nowDate = new Date();
+ long nowMs = nowDate.getTime();
+ if (nowMs == lastSentTime) {
+ counter++;
+ } else {
+ counter = 0;
+ }
+
+ // Create file path
+ StringBuffer filePath = new StringBuffer(dir.getPath());
+ filePath.append(File.separatorChar).append(sdf.format(nowDate)).append(
+ '-');
+ filePath.append(mf.format(new Object[] { new Long(counter) })).append(
+ '-');
+ filePath.append(detCom.getUuid()).append(ext);
+ File file = new File(filePath.toString());