Package org.boris.pecoff4j

Source Code of org.boris.pecoff4j.IconExtractorTest

package org.boris.pecoff4j;

import java.io.File;

import org.boris.pecoff4j.util.FindFilesCallback;
import org.boris.pecoff4j.util.IO;
import org.boris.pecoff4j.util.IconExtractor;
import org.boris.pecoff4j.util.PEFilenameFilter;

public class IconExtractorTest implements FindFilesCallback
{
    private static File outdir = new File("F:/Development/icons/extracted");

    public static void main(String[] args) throws Exception {
        IO.findFiles(new File("F:/Program Files/"), new PEFilenameFilter(),
                new IconExtractorTest());
    }

    public void fileFound(File fs) {
        try {
            System.out.println(fs);
            IconExtractor.extract(fs, outdir);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
TOP

Related Classes of org.boris.pecoff4j.IconExtractorTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.