90% of file upload, GPC number
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.bayer.edam.migration.attic;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.lingala.zip4j.core.ZipFile;
|
||||
import net.lingala.zip4j.model.FileHeader;
|
||||
|
||||
public class ZipTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
ZipFile zipFile = new ZipFile("C:\\Temp\\Migration AH\\ziptest\\folder.zip");
|
||||
List<FileHeader> fileList = zipFile.getFileHeaders();
|
||||
|
||||
System.out.println(fileList.size());
|
||||
|
||||
for (FileHeader header : fileList) {
|
||||
System.out.println(header.getFileName() + ", " + header.getUncompressedSize());
|
||||
}
|
||||
|
||||
System.out.println(fileList.get(0).getFileName());
|
||||
|
||||
System.out.println("test".matches("\\d\\d\\d\\d-\\d\\d\\d\\d\\b"));
|
||||
System.out.println("2121-5531".matches("\\b\\d{4}-\\d{4}\\b"));
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user