Here you can find the source of process(Object obj)
public static void process(Object obj)
//package com.java2s; //License from project: Apache License import java.util.jar.JarEntry; public class Main { public static void process(Object obj) { JarEntry entry = (JarEntry) obj; String name = entry.getName(); long size = entry.getSize(); long compressedSize = entry.getCompressedSize(); System.out.println(name + "\t" + size + "\t" + compressedSize); }/*from ww w . jav a 2 s. co m*/ public static String getName(String fileName) { int pos = fileName.lastIndexOf("."); if (pos == -1) { return fileName; } else { return fileName.substring(0, pos); } } }