class IOUtil {
    public static InputStream getInputStream(String path) throws IOException {<FILL_FUNCTION_BODY>}
}

        // 从Resource路径获取
        InputStream inputStream = IOUtil.class.getClassLoader().getResourceAsStream(path);
        if (inputStream == null) {
            // 从文件路径获取
            inputStream = new FileInputStream(path);
        }

        return inputStream;
    
<no_super_class>