01: /*
02: * Copyright 2001-2005 The Apache Software Foundation
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.apache.commons.net.ftp;
17:
18: import org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl;
19:
20: /**
21: * This abstract class implements both the older FTPFileListParser and
22: * newer FTPFileEntryParser interfaces with default functionality.
23: * All the classes in the parser subpackage inherit from this.
24: *
25: * @author Steve Cohen <scohen@apache.org>
26: * @see org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl
27: * @deprecated This class is deprecated as of version 1.2 and will be
28: * removed in version 2.0 --
29: * org.apache.commons.net.ftp.RegexFTPFileEntryParserImpl is its
30: * designated replacement. Class has been renamed, entire
31: * implemenation is in RegexFTPFileEntryParserImpl.
32: *
33: */
34: public abstract class FTPFileListParserImpl extends
35: RegexFTPFileEntryParserImpl {
36: /**
37: * The constructor for a FTPFileListParserImpl object.
38: *
39: * @param regex The regular expression with which this object is
40: * initialized.
41: *
42: * @exception IllegalArgumentException
43: * Thrown if the regular expression is unparseable. Should not be seen in
44: * normal conditions. It it is seen, this is a sign that a subclass has
45: * been created with a bad regular expression. Since the parser must be
46: * created before use, this means that any bad parser subclasses created
47: * from this will bomb very quickly, leading to easy detection.
48: */
49:
50: public FTPFileListParserImpl(String regex) {
51: super (regex);
52: }
53:
54: }
55:
56: /* Emacs configuration
57: * Local variables: **
58: * mode: java **
59: * c-basic-offset: 4 **
60: * indent-tabs-mode: nil **
61: * End: **
62: */
|