View Javadoc

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