public InputStream getInputStream() throws IOException {
            if (type == 1) {
                return new FileInputStream(file);
            } else if (type == 2) {
                return classloader.getResourceAsStream(path);
            } else if (type == 3) {
                return url.openStream();
            } else {
                return classloader.getResourceAsStream(path);
            }
        }