blob: 33075d1c1433532a8b3f17df17c881730592de7d [file] [log] [blame]
/*******************************************************************************
* 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.IOException;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
/**
* Interface for file exporters of different file formats. Used by the
* zip and tar.gz exporters.
*
* @since 3.1
*/
public interface IFileExporter {
/**
* Do all required cleanup now that we are finished with the
* currently-open file.
*
* @throws IOException
*/
public void finished() throws IOException;
/**
* Write the passed resource to the current archive
*
* @param resource
* @param destinationPath
* @throws IOException
* @throws CoreException
*/
public void write(IFile resource, String destinationPath)
throws IOException, CoreException;
}