protected File getExtractFile(String entryName) { if (generation == null) return null; String path = ".cp"; /* put all these entries in this subdir *///$NON-NLS-1$ String name = entryName.replace('/', File.separatorChar); if ((name.length() > 1) && (name.charAt(0) == File.separatorChar)) /* if name has a leading slash */ path = path.concat(name); else path = path + File.separator + name; return generation.getExtractFile(path); }
protected File getExtractFile(String entryName) { if (generation == null) return null; String path = ".cp"; /* put all these entries in this subdir *///$NON-NLS-1$ String name = entryName.replace('/', File.separatorChar); if ((name.length() > 1) && (name.charAt(0) == File.separatorChar)) /* if name has a leading slash */ path = path.concat(name); else path = path + File.separator + name; return generation.getExtractFile(path); }
protected File getExtractFile(String entryName) { if (generation == null) return null; String path = ".cp"; /* put all these entries in this subdir *///$NON-NLS-1$ String name = entryName.replace('/', File.separatorChar); if ((name.length() > 1) && (name.charAt(0) == File.separatorChar)) /* if name has a leading slash */ path = path.concat(name); else path = path + File.separator + name; return generation.getExtractFile(path); }
private File getExtractFile(String entryName) { if (generation == null) return null; String path = ".cp"; /* put all these entries in this subdir *///$NON-NLS-1$ String name = entryName.replace('/', File.separatorChar); if ((name.length() > 1) && (name.charAt(0) == File.separatorChar)) /* if name has a leading slash */ path = path.concat(name); else path = path + File.separator + name; return generation.getExtractFile(path); }
protected File getExtractFile(String entryName) { if (generation == null) return null; String path = ".cp"; /* put all these entries in this subdir *///$NON-NLS-1$ String name = entryName.replace('/', File.separatorChar); if ((name.length() > 1) && (name.charAt(0) == File.separatorChar)) /* if name has a leading slash */ path = path.concat(name); else path = path + File.separator + name; return generation.getExtractFile(path); }
/** * Gets called by BundleFile during {@link BundleFile#getFile(String, boolean)}. This method * will allocate a File object where content of the specified path may be * stored for this generation. The returned File object may * not exist if the content has not previously been stored. * @param path the path to the content to extract from the generation * @return a file object where content of the specified path may be stored. * @throws StorageException if the path will escape the persistent storage of the generation */ public File getExtractFile(String path) { return getExtractFile(null, path); }
private File getExtractFile(String entryName) { if (generation == null) return null; return generation.getExtractFile(".cp", entryName); //$NON-NLS-1$ }