View Javadoc

1   package fr.in2p3.jsaga.sync.file;
2   
3   import org.ogf.saga.error.*;
4   import org.ogf.saga.file.*;
5   import org.ogf.saga.session.Session;
6   import org.ogf.saga.url.URL;
7   
8   /* ***************************************************
9    * *** Centre de Calcul de l'IN2P3 - Lyon (France) ***
10   * ***             http://cc.in2p3.fr/             ***
11   * ***************************************************
12   * File:   SyncFileFactory
13   * Author: Sylvain Reynaud (sreynaud@in2p3.fr)
14   * Date:   29 mai 2009
15   * ***************************************************
16   * Description:                                      */
17  /**
18   *
19   */
20  public interface SyncFileFactory {
21      public File doCreateFileSync(Session session, URL name, int flags)
22              throws NotImplementedException, IncorrectURLException, AuthenticationFailedException,
23              AuthorizationFailedException, PermissionDeniedException, BadParameterException,
24              AlreadyExistsException, DoesNotExistException, TimeoutException, NoSuccessException;
25  
26      public FileInputStream doCreateFileInputStreamSync(Session session, URL name)
27              throws NotImplementedException, IncorrectURLException, AuthenticationFailedException,
28              AuthorizationFailedException, PermissionDeniedException, BadParameterException,
29              AlreadyExistsException, DoesNotExistException, TimeoutException, NoSuccessException;
30  
31      public FileOutputStream doCreateFileOutputStreamSync(Session session, URL name, boolean append)
32              throws NotImplementedException, IncorrectURLException, AuthenticationFailedException,
33              AuthorizationFailedException, PermissionDeniedException, BadParameterException,
34              AlreadyExistsException, DoesNotExistException, TimeoutException, NoSuccessException;
35  
36      public Directory doCreateDirectorySync(Session session, URL name, int flags)
37              throws NotImplementedException, IncorrectURLException, AuthenticationFailedException,
38              AuthorizationFailedException, PermissionDeniedException, BadParameterException,
39              AlreadyExistsException, DoesNotExistException, TimeoutException, NoSuccessException;
40  }