001    /*
002     * Copyright 2001-2005 The Apache Software Foundation
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *     http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.apache.commons.net.ftp;
017    
018    import org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl;
019    
020    /**
021     * This abstract class implements both the older FTPFileListParser and
022     * newer FTPFileEntryParser interfaces with default functionality.
023     * All the classes in the parser subpackage inherit from this.
024     *
025     * @author Steve Cohen <scohen@apache.org>
026     * @see org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl
027     * @deprecated This class is deprecated as of version 1.2 and will be
028     *             removed in version 2.0 --
029     *             org.apache.commons.net.ftp.RegexFTPFileEntryParserImpl is its
030     *             designated replacement.  Class has been renamed, entire
031     *             implemenation is in RegexFTPFileEntryParserImpl.
032     *
033     */
034    public abstract class FTPFileListParserImpl
035        extends RegexFTPFileEntryParserImpl
036    {
037        /**
038         * The constructor for a FTPFileListParserImpl object.
039         *
040         * @param regex  The regular expression with which this object is
041         * initialized.
042         *
043         * @exception IllegalArgumentException
044         * Thrown if the regular expression is unparseable.  Should not be seen in
045         * normal conditions.  It it is seen, this is a sign that a subclass has
046         * been created with a bad regular expression.   Since the parser must be
047         * created before use, this means that any bad parser subclasses created
048         * from this will bomb very quickly,  leading to easy detection.
049         */
050    
051        public FTPFileListParserImpl(String regex) {
052            super(regex);
053        }
054    
055    
056    }
057    
058    /* Emacs configuration
059     * Local variables:        **
060     * mode:             java  **
061     * c-basic-offset:   4     **
062     * indent-tabs-mode: nil   **
063     * End:                    **
064     */