List of usage examples for java.nio.file InvalidPathException getLocalizedMessage
public String getLocalizedMessage()
From source file:org.jboss.tools.common.launcher.ui.wizard.NewLauncherProjectWizardController.java
private void unzipEntry(IPath location, ZipInputStream stream, ZipEntry entry) throws IOException { try {/*w w w . j av a 2s .c om*/ String name = skipOneLevel(entry.getName()); if (!name.isEmpty()) { Path path = Paths.get(location.toOSString(), name); if (entry.isDirectory()) { Files.createDirectories(path); } else { try (OutputStream output = new FileOutputStream(path.toFile())) { IOUtils.copy(stream, output); } } } } catch (InvalidPathException e) { LauncherUIPlugin.getDefault().getLog() .log(new Status(IStatus.WARNING, LauncherUIPlugin.PLUGIN_ID, e.getLocalizedMessage(), e)); } }