1 package fr.in2p3.jsaga.sync.file;
2
3 import fr.in2p3.jsaga.sync.namespace.SyncNSDirectory;
4 import org.ogf.saga.error.*;
5 import org.ogf.saga.file.FileInputStream;
6 import org.ogf.saga.file.FileOutputStream;
7 import org.ogf.saga.url.URL;
8
9
10
11
12 public interface SyncDirectory extends SyncNSDirectory {
13
14
15
16
17
18
19
20
21
22
23
24
25 public long getSizeSync(URL name, int flags) throws NotImplementedException,
26 IncorrectURLException, AuthenticationFailedException,
27 AuthorizationFailedException, PermissionDeniedException,
28 BadParameterException, IncorrectStateException,
29 DoesNotExistException, TimeoutException, NoSuccessException;
30
31
32
33
34
35
36
37
38 public long getSizeSync(URL name) throws NotImplementedException,
39 IncorrectURLException, AuthenticationFailedException,
40 AuthorizationFailedException, PermissionDeniedException,
41 BadParameterException, IncorrectStateException,
42 DoesNotExistException, TimeoutException, NoSuccessException;
43
44
45
46
47
48
49
50
51
52 public boolean isFileSync(URL name) throws NotImplementedException,
53 IncorrectURLException, DoesNotExistException,
54 AuthenticationFailedException, AuthorizationFailedException,
55 PermissionDeniedException, BadParameterException,
56 IncorrectStateException, TimeoutException, NoSuccessException;
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72 public FileInputStream openFileInputStreamSync(URL name)
73 throws NotImplementedException, IncorrectURLException,
74 AuthenticationFailedException, AuthorizationFailedException,
75 PermissionDeniedException, BadParameterException,
76 IncorrectStateException, AlreadyExistsException,
77 DoesNotExistException, TimeoutException, NoSuccessException;
78
79
80
81
82
83
84
85
86 public FileOutputStream openFileOutputStreamSync(URL name)
87 throws NotImplementedException, IncorrectURLException,
88 AuthenticationFailedException, AuthorizationFailedException,
89 PermissionDeniedException, BadParameterException,
90 IncorrectStateException, AlreadyExistsException,
91 DoesNotExistException, TimeoutException, NoSuccessException;
92
93
94
95
96
97
98
99
100
101
102 public FileOutputStream openFileOutputStreamSync(URL name, boolean append)
103 throws NotImplementedException, IncorrectURLException,
104 AuthenticationFailedException, AuthorizationFailedException,
105 PermissionDeniedException, BadParameterException,
106 IncorrectStateException, AlreadyExistsException,
107 DoesNotExistException, TimeoutException, NoSuccessException;
108 }