KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > backup > ImporterExporter


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.backup;
6
7 import java.util.jar.* ;
8 import java.io.InputStream JavaDoc;
9 import java.io.OutputStream JavaDoc ;
10 /**
11  * May 27, 2004
12  * @author: Tuan Nguyen
13  * @email: tuan08@users.sourceforge.net
14  * @version: $ID$
15  **/

16 public interface ImporterExporter {
17     public String JavaDoc getName() ;
18     public String JavaDoc getDescription() ;
19     
20     public void exportUserData(String JavaDoc user, Object JavaDoc transaction,
21                                    OutputStream JavaDoc out, JarEntry entry) throws Exception JavaDoc ;
22     public void importUserData(String JavaDoc user, Object JavaDoc transaction,
23                                    InputStream JavaDoc in, JarEntry entry) throws Exception JavaDoc ;
24     
25     public void exportServiceData(Object JavaDoc transaction, JarOutputStream out) throws Exception JavaDoc ;
26     public void importServiceData(Object JavaDoc transaction, JarFile in) throws Exception JavaDoc ;
27 }
Popular Tags