}
else if ((mode & S_IFREG) == S_IFREG) {
if (destinationFile.exists()) {
throw new IOException("The file '" + destinationFile + "' already exists.");
}
InputStream is = new BoundedInputStream(paxStream, 0, fileSize);
FileOutputStream fos = new FileOutputStream(destinationFile);
FileUtilities.writeInputStreamToOutputStream(is, fos, fileSize, new NullProgressMonitor());
}
else {
throw new IOException("Unknown mode " + modeStr + " for " + name + ".");