View Javadoc

1   /*
2    * Copyright 2001-2005 The Apache Software Foundation
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
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
35      extends RegexFTPFileEntryParserImpl
36  {
37      /**
38       * The constructor for a FTPFileListParserImpl object.
39       *
40       * @param regex  The regular expression with which this object is
41       * initialized.
42       *
43       * @exception IllegalArgumentException
44       * Thrown if the regular expression is unparseable.  Should not be seen in
45       * normal conditions.  It it is seen, this is a sign that a subclass has
46       * been created with a bad regular expression.   Since the parser must be
47       * created before use, this means that any bad parser subclasses created
48       * from this will bomb very quickly,  leading to easy detection.
49       */
50  
51      public FTPFileListParserImpl(String regex) {
52          super(regex);
53      }
54  
55  
56  }
57  
58  /* Emacs configuration
59   * Local variables:        **
60   * mode:             java  **
61   * c-basic-offset:   4     **
62   * indent-tabs-mode: nil   **
63   * End:                    **
64   */