Bug 81598 [Import/Export] Output tar files are too short
When outputting a small .tar file, I noticed that it was not correctly padded to 10240 bytes. The fix is to make sure we correctly close the output stream. This bug may have been exposed by the fix for 81277.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarOutputStream.java
/*******************************************************************************
 * Copyright (c) 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 * IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.internal.wizards.datatransfer;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/**
 * Output stream for writing ustar archive files (tar) compatible
 * with the specification in IEEE Std 1003.1-2001.
 *
 * @since 3.1
 */
public class TarOutputStream extends FilterOutputStream {
	
	private int byteswritten = 0;
	private int datapos = 0;
	private long cursize = 0;
	/**