Bug 81603 [Import/Export] tar import/export does not preserve file permissions
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFileStructureProvider.java
}
    /**
     * Creates a new tar file entry with the specified name.
     */
    protected void createFile(TarEntry entry) {
        IPath pathname = new Path(entry.getName());
        TarEntry parent;
        if (pathname.segmentCount() == 1)
            parent = root;
        else
            parent = (TarEntry) directoryEntryCache.get(pathname
                    .removeLastSegments(1));
        addToChildren(parent, entry);
    }
    /* (non-Javadoc)
     * Method declared on IImportStructureProvider
     */
    public List getChildren(Object element) {
        if (children == null)
            initialize();
        return ((List) children.get(element));
    }
    /* (non-Javadoc)
     * Method declared on IImportStructureProvider
     */
    public InputStream getContents(Object element) {
        try {
            return tarFile.getInputStream((TarEntry) element);
        } catch (TarException e) {
        	return null;