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
10
11
12
13
14
15
16
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 }