All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bdware.datanet.CPVersion Maven / Gradle / Ivy

There is a newer version: 0.6.9
Show newest version
package org.bdware.datanet;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public enum CPVersion {
    cp_1_5_0("cp-1.5.0.jarlist"),
    cp_1_5_3("cp-1.5.3.jarlist"),
    cp_1_5_7("cp-1.5.7.jarlist"),
    cp_1_6_0("cp-1.6.0.jarlist"),
    cp_1_6_1("cp-1.6.1.jarlist");
    private final String path;

    CPVersion(String path) {
        this.path = path;
    }

    public List getFileList() {
        List ret = new ArrayList<>();
        try {
            InputStream input = CPVersion.class.getClassLoader().getResourceAsStream(path);
            Scanner sc = new Scanner(input);
            for (; sc.hasNextLine(); ) {
                ret.add(sc.nextLine());
            }
        } catch (Exception e) {
        }
        return ret;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy