public static File.InputStreamWrapper OpenInput(String Dir, String FileName) throws IOException {
File.InputStreamWrapper is = new File.InputStreamWrapper();
if (Dir.equals("AssetsDir")) {
if (virtualAssetsFolder != null) {
is.setObject(new GZIPInputStream(new FileInputStream(new java.io.File(virtualAssetsFolder, FileName.toLowerCase(BA.cul)))));
} else {
is.setObject(BA.applicationContext.getAssets().open(FileName.toLowerCase(BA.cul).replace('/', '\\')));
}
} else if (Dir.equals("ContentDir")) {
is.setObject(BA.applicationContext.getContentResolver().openInputStream(Uri.parse(FileName)));
} else {
is.setObject(new BufferedInputStream(new FileInputStream(new java.io.File(Dir, FileName)), 4096));
}
return is;
}