1. /*
  2. * Copyright 2001-2004 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. import org.apache.commons.net.ftp.parser.*;
  18. /**
  19. * This abstract class implements both the older FTPFileListParser and
  20. * newer FTPFileEntryParser interfaces with default functionality.
  21. * All the classes in the parser subpackage inherit from this.
  22. *
  23. * @author Steve Cohen <scohen@apache.org>
  24. * @see org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl
  25. * @deprecated This class is deprecated as of version 1.2 and will be
  26. * removed in version 2.0 --
  27. * org.apache.commons.net.ftp.RegexFTPFileEntryParserImpl is its
  28. * designated replacement. Class has been renamed, entire
  29. * implemenation is in RegexFTPFileEntryParserImpl.
  30. *
  31. */
  32. public abstract class FTPFileListParserImpl
  33. extends RegexFTPFileEntryParserImpl
  34. {
  35. /**
  36. * The constructor for a FTPFileListParserImpl object.
  37. *
  38. * @param regex The regular expression with which this object is
  39. * initialized.
  40. *
  41. * @exception IllegalArgumentException
  42. * Thrown if the regular expression is unparseable. Should not be seen in
  43. * normal conditions. It it is seen, this is a sign that a subclass has
  44. * been created with a bad regular expression. Since the parser must be
  45. * created before use, this means that any bad parser subclasses created
  46. * from this will bomb very quickly, leading to easy detection.
  47. */
  48. public FTPFileListParserImpl(String regex) {
  49. super(regex);
  50. }
  51. }
  52. /* Emacs configuration
  53. * Local variables: **
  54. * mode: java **
  55. * c-basic-offset: 4 **
  56. * indent-tabs-mode: nil **
  57. * End: **
  58. */