KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > wizards > datatransfer > IFileExporter


1 /*******************************************************************************
2  * Copyright (c) 2004, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.internal.wizards.datatransfer;
12
13 import java.io.IOException JavaDoc;
14
15 import org.eclipse.core.resources.IFile;
16 import org.eclipse.core.runtime.CoreException;
17
18 /**
19  * Interface for file exporters of different file formats. Used by the
20  * zip and tar.gz exporters.
21  *
22  * @since 3.1
23  */

24 public interface IFileExporter {
25
26     /**
27      * Do all required cleanup now that we are finished with the
28      * currently-open file.
29      *
30      * @throws IOException
31      */

32     public void finished() throws IOException JavaDoc;
33     
34     /**
35      * Write the passed resource to the current archive
36      *
37      * @param resource
38      * @param destinationPath
39      * @throws IOException
40      * @throws CoreException
41      */

42     public void write(IFile resource, String JavaDoc destinationPath)
43         throws IOException JavaDoc, CoreException;
44
45 }
46
Popular Tags