KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > drftpd > remotefile > AbstractLinkedRemoteFile


1 /*
2  * This file is part of DrFTPD, Distributed FTP Daemon.
3  *
4  * DrFTPD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * DrFTPD is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with DrFTPD; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18 package org.drftpd.remotefile;
19
20 import java.io.FileNotFoundException JavaDoc;
21 import java.io.IOException JavaDoc;
22 import java.util.Collection JavaDoc;
23 import java.util.Map JavaDoc;
24
25 import net.sf.drftpd.NoAvailableSlaveException;
26 import net.sf.drftpd.FileExistsException;
27 import net.sf.drftpd.ObjectNotFoundException;
28 import net.sf.drftpd.SFVFile;
29 import net.sf.drftpd.master.BaseFtpConnection;
30 import net.sf.drftpd.master.RemoteSlave;
31 import net.sf.drftpd.remotefile.LinkedRemoteFile;
32 import net.sf.drftpd.remotefile.LinkedRemoteFileInterface;
33 import net.sf.drftpd.remotefile.AbstractRemoteFile;
34 import net.sf.drftpd.remotefile.RemoteFileInterface;
35 import net.sf.drftpd.remotefile.LinkedRemoteFile.NonExistingFile;
36 import net.sf.drftpd.slave.Transfer;
37 import net.sf.drftpd.slave.TransferStatus;
38
39 /**
40  * Abstract class for overriding only a subset of LinkedRemoteFile's methods.
41  * Can be used for testing.
42  * @author mog
43  * @version $Id
44  */

45 public abstract class AbstractLinkedRemoteFile
46     implements LinkedRemoteFileInterface {
47
48     public AbstractLinkedRemoteFile() {
49         super();
50     }
51
52     public LinkedRemoteFile addFile(AbstractRemoteFile file) {
53         throw new UnsupportedOperationException JavaDoc();
54     }
55
56     public void addSlave(RemoteSlave slave) {
57         throw new UnsupportedOperationException JavaDoc();
58     }
59
60     public int compareTo(Object JavaDoc o) {
61
62         throw new UnsupportedOperationException JavaDoc();
63     }
64
65     public LinkedRemoteFile createDirectories(String JavaDoc path) {
66         throw new UnsupportedOperationException JavaDoc();
67     }
68
69     public LinkedRemoteFile createDirectory(String JavaDoc fileName)
70         throws FileExistsException {
71         throw new UnsupportedOperationException JavaDoc();
72     }
73
74     public LinkedRemoteFile createDirectory(
75         String JavaDoc owner,
76         String JavaDoc group,
77         String JavaDoc fileName)
78         throws FileExistsException {
79         throw new UnsupportedOperationException JavaDoc();
80     }
81
82     public void delete() {
83         throw new UnsupportedOperationException JavaDoc();
84     }
85
86     public void deleteOthers(RemoteSlave slave) {
87         throw new UnsupportedOperationException JavaDoc();
88     }
89
90     public long dirSize() {
91         throw new UnsupportedOperationException JavaDoc();
92     }
93
94     public RemoteSlave getASlave(char direction, BaseFtpConnection conn)
95         throws NoAvailableSlaveException {
96         throw new UnsupportedOperationException JavaDoc();
97     }
98
99     public RemoteSlave getASlaveForDownload(BaseFtpConnection conn)
100         throws NoAvailableSlaveException {
101         throw new UnsupportedOperationException JavaDoc();
102     }
103
104     public Collection JavaDoc getAvailableSlaves() throws NoAvailableSlaveException {
105         throw new UnsupportedOperationException JavaDoc();
106     }
107
108     public long getCheckSum() throws NoAvailableSlaveException {
109         throw new UnsupportedOperationException JavaDoc();
110     }
111
112     public long getCheckSumCached() {
113         throw new UnsupportedOperationException JavaDoc();
114     }
115
116     public long getCheckSumFromSlave()
117         throws NoAvailableSlaveException, IOException JavaDoc {
118         throw new UnsupportedOperationException JavaDoc();
119     }
120
121     public Collection JavaDoc getDirectories() {
122         throw new UnsupportedOperationException JavaDoc();
123     }
124
125     public LinkedRemoteFileInterface getFile(String JavaDoc fileName)
126         throws FileNotFoundException JavaDoc {
127         throw new UnsupportedOperationException JavaDoc();
128     }
129
130     public LinkedRemoteFileInterface getFileDeleted(
131         String JavaDoc fileName)
132         throws FileNotFoundException JavaDoc {
133         throw new UnsupportedOperationException JavaDoc();
134     }
135
136     public Collection JavaDoc getFiles() {
137         throw new UnsupportedOperationException JavaDoc();
138     }
139
140     public String JavaDoc getGroupname() {
141         throw new UnsupportedOperationException JavaDoc();
142     }
143
144     public RemoteFileInterface getLink() throws FileNotFoundException JavaDoc {
145         throw new UnsupportedOperationException JavaDoc();
146     }
147
148     public String JavaDoc getLinkPath() {
149         throw new UnsupportedOperationException JavaDoc();
150     }
151
152     public Map JavaDoc getMap() {
153         throw new UnsupportedOperationException JavaDoc();
154     }
155
156     public String JavaDoc getName() {
157         throw new UnsupportedOperationException JavaDoc();
158     }
159
160     public LinkedRemoteFileInterface getOldestFile()
161         throws ObjectNotFoundException {
162         throw new UnsupportedOperationException JavaDoc();
163     }
164
165     public String JavaDoc getParent() throws FileNotFoundException JavaDoc {
166         throw new UnsupportedOperationException JavaDoc();
167     }
168
169     public LinkedRemoteFile getParentFile() throws FileNotFoundException JavaDoc {
170         throw new UnsupportedOperationException JavaDoc();
171     }
172
173     public LinkedRemoteFile getParentFileNull() {
174         throw new UnsupportedOperationException JavaDoc();
175     }
176
177     public String JavaDoc getPath() {
178         throw new UnsupportedOperationException JavaDoc();
179     }
180
181     public LinkedRemoteFile getRoot() {
182         throw new UnsupportedOperationException JavaDoc();
183     }
184
185     public SFVFile getSFVFile()
186         throws IOException JavaDoc, FileNotFoundException JavaDoc, NoAvailableSlaveException {
187         throw new UnsupportedOperationException JavaDoc();
188     }
189
190     public Collection JavaDoc getSlaves() {
191         throw new UnsupportedOperationException JavaDoc();
192     }
193
194     public String JavaDoc getUsername() {
195         throw new UnsupportedOperationException JavaDoc();
196     }
197
198     public long getXferspeed() {
199         throw new UnsupportedOperationException JavaDoc();
200     }
201
202     public long getXfertime() {
203         throw new UnsupportedOperationException JavaDoc();
204     }
205
206     public boolean hasFile(String JavaDoc filename) {
207         throw new UnsupportedOperationException JavaDoc();
208     }
209
210     public boolean hasOfflineSlaves() {
211         throw new UnsupportedOperationException JavaDoc();
212     }
213
214     public boolean hasSlave(RemoteSlave slave) {
215         throw new UnsupportedOperationException JavaDoc();
216     }
217
218     public boolean isAvailable() {
219         throw new UnsupportedOperationException JavaDoc();
220     }
221
222     public boolean isDeleted() {
223         throw new UnsupportedOperationException JavaDoc();
224     }
225
226     public boolean isDirectory() {
227         throw new UnsupportedOperationException JavaDoc();
228     }
229
230     public boolean isFile() {
231         throw new UnsupportedOperationException JavaDoc();
232     }
233
234     public boolean isLink() {
235         throw new UnsupportedOperationException JavaDoc();
236     }
237
238     public long lastModified() {
239         throw new UnsupportedOperationException JavaDoc();
240     }
241
242     public long length() {
243         throw new UnsupportedOperationException JavaDoc();
244     }
245
246     public RemoteFileInterface[] listFiles() {
247         throw new UnsupportedOperationException JavaDoc();
248     }
249
250     public LinkedRemoteFile lookupFile(String JavaDoc path)
251         throws FileNotFoundException JavaDoc {
252         throw new UnsupportedOperationException JavaDoc();
253     }
254
255     public LinkedRemoteFile lookupFile(String JavaDoc path, boolean includeDeleted)
256         throws FileNotFoundException JavaDoc {
257         throw new UnsupportedOperationException JavaDoc();
258     }
259
260     public NonExistingFile lookupNonExistingFile(String JavaDoc path) {
261         throw new UnsupportedOperationException JavaDoc();
262     }
263
264     public NonExistingFile lookupNonExistingFile(
265         String JavaDoc path,
266         boolean includeDeleted) {
267         throw new UnsupportedOperationException JavaDoc();
268     }
269
270     public String JavaDoc lookupPath(String JavaDoc path) {
271         throw new UnsupportedOperationException JavaDoc();
272     }
273
274     public SFVFile lookupSFVFile()
275         throws IOException JavaDoc, FileNotFoundException JavaDoc, NoAvailableSlaveException {
276         throw new UnsupportedOperationException JavaDoc();
277     }
278
279     public LinkedRemoteFile putFile(RemoteFileInterface file) {
280         throw new UnsupportedOperationException JavaDoc();
281     }
282
283     public TransferStatus receiveFile(
284         Transfer transfer,
285         char type,
286         long offset)
287         throws IOException JavaDoc {
288         throw new UnsupportedOperationException JavaDoc();
289     }
290
291     public void remerge(LinkedRemoteFile mergedir, RemoteSlave rslave) {
292         throw new UnsupportedOperationException JavaDoc();
293     }
294
295     public boolean removeSlave(RemoteSlave slave) {
296         throw new UnsupportedOperationException JavaDoc();
297     }
298
299     public LinkedRemoteFile renameTo(String JavaDoc toDirPath, String JavaDoc toName)
300         throws IOException JavaDoc, FileNotFoundException JavaDoc {
301         throw new UnsupportedOperationException JavaDoc();
302     }
303
304     public TransferStatus sendFile(Transfer transfer, char type, long offset)
305         throws IOException JavaDoc {
306         throw new UnsupportedOperationException JavaDoc();
307     }
308
309     public void setCheckSum(long checkSum) {
310         throw new UnsupportedOperationException JavaDoc();
311     }
312
313     public void setGroup(String JavaDoc group) {
314         throw new UnsupportedOperationException JavaDoc();
315     }
316
317     public void setLastModified(long lastModified) {
318         throw new UnsupportedOperationException JavaDoc();
319     }
320
321     public void setLength(long length) {
322         throw new UnsupportedOperationException JavaDoc();
323     }
324
325     public void setOwner(String JavaDoc owner) {
326         throw new UnsupportedOperationException JavaDoc();
327     }
328
329     public void setXfertime(long xfertime) {
330         throw new UnsupportedOperationException JavaDoc();
331     }
332
333     public void unmergeDir(RemoteSlave rslave) {
334         throw new UnsupportedOperationException JavaDoc();
335     }
336
337     public void unmergeFile(RemoteSlave rslave) {
338         throw new UnsupportedOperationException JavaDoc();
339     }
340
341 }
342
Popular Tags