package com.stara.crawler.common;
/**
 * @see 下载的资源文件命名策略
 * @author Administrator
 *
 */
public enum ResourceStoragePolicy {
	TIMESTAMP,UUID,NATIVE;//时间戳,UUID,原生
}

@@ -27,16 +27,87 @@
 common;%0A
+%0Aimport java.util.Date;%0A%0Aimport com.stara.crawler.util.DateFormatter;%0A%0A
 /**%0A * @
@@ -204,33 +204,408 @@
 TAMP
-,UUID,NATIVE;//%E6%97%B6%E9%97%B4%E6%88%B3,UUID,%E5%8E%9F%E7%94%9F
+%7Bpublic String geneTag(String suffix)%7Breturn String.valueOf(System.currentTimeMillis()).concat(suffix);%7D%7D,%0A%09UUID%7Bpublic String geneTag(String suffix)%7Breturn java.util.UUID.randomUUID().toString().concat(suffix);%7D%7D,%0A%09PATTERDATE%7Bpublic String geneTag(String suffix)%7Breturn DateFormatter.format(new Date(), %22yyyyMMddHHmmss%22).concat(suffix);%7D%7D;//%E6%97%B6%E9%97%B4%E6%88%B3,UUID,%E5%8E%9F%E7%94%9F%0A%09public abstract String geneTag(String suffix);
 %0A%7D%0A

add Enum content