01: /*******************************************************************************
02: * Copyright (c) 2004, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.wizards.datatransfer;
11:
12: import java.io.IOException;
13:
14: import org.eclipse.core.resources.IFile;
15: import org.eclipse.core.runtime.CoreException;
16:
17: /**
18: * Interface for file exporters of different file formats. Used by the
19: * zip and tar.gz exporters.
20: *
21: * @since 3.1
22: */
23: public interface IFileExporter {
24:
25: /**
26: * Do all required cleanup now that we are finished with the
27: * currently-open file.
28: *
29: * @throws IOException
30: */
31: public void finished() throws IOException;
32:
33: /**
34: * Write the passed resource to the current archive
35: *
36: * @param resource
37: * @param destinationPath
38: * @throws IOException
39: * @throws CoreException
40: */
41: public void write(IFile resource, String destinationPath)
42: throws IOException, CoreException;
43:
44: }
|